From f12e3accd8a9103b303bf063d55de4ad2bd9668b Mon Sep 17 00:00:00 2001 From: gandalf3 Date: Sat, 28 Oct 2017 12:17:06 -0700 Subject: [PATCH] Allow individual velocity/pan changes with alt This commit changes the behavior introduced in 6e3d4f431 to allow using alt to change the velocity of multiple *selected* notes by dragging. I believe this was the originally intended behavior, but it never worked for me. --- src/gui/editors/PianoRoll.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/gui/editors/PianoRoll.cpp b/src/gui/editors/PianoRoll.cpp index a80a2d8bda0..cf5287ef9b1 100644 --- a/src/gui/editors/PianoRoll.cpp +++ b/src/gui/editors/PianoRoll.cpp @@ -2116,9 +2116,14 @@ void PianoRoll::mouseMoveEvent( QMouseEvent * me ) bool isUnderPosition = n->withinRange( ticks_start, ticks_end ); // Play note under the cursor if ( isUnderPosition ) { testPlayNote( n ); } - // If note is the one under the cursor or is selected when alt is - // not pressed - if ( ( isUnderPosition && !isSelection() ) || ( n->selected() && !altPressed ) ) + // If note is: + // Under the cursor, when there is no selection + // Selected, and alt is not pressed + // Under the cursor, selected, and alt is pressed + if ( ( isUnderPosition && !isSelection() ) || \ + ( n->selected() && !altPressed ) || \ + ( isUnderPosition && n->selected() && altPressed ) \ + ) { if( m_noteEditMode == NoteEditVolume ) {