Skip to content

Commit

Permalink
Limit note length to quantization value
Browse files Browse the repository at this point in the history
Draging a note to it's minimum value of 1 will add this new length to
the note if you later choose to stretch it which will no be clearly
visible in the Piano Roll unless you zoom in a bit. Limit the note
length to the quantization value and use <shift> key to set a smaller
value.
  • Loading branch information
zonkmachine committed Nov 22, 2017
1 parent 55076d0 commit d5ce065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/editors/PianoRoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2566,7 +2566,7 @@ void PianoRoll::dragNotes( int x, int y, bool alt, bool shift, bool ctrl )
if (note->selected())
{
int newLength = note->oldLength() + off_ticks;
newLength = qMax(1, newLength);
newLength = qMax( quantization(), newLength );
note->setLength( MidiTime(newLength) );

m_lenOfNewNotes = note->length();
Expand Down

0 comments on commit d5ce065

Please sign in to comment.