mirror of
https://github.com/LMMS/lmms.git
synced 2026-05-05 21:35:33 -04:00
Allow individual velocity/pan changes with alt (#3923)
Fix regression caused by 6e3d4f4, allow ALT to change the velocity of multiple selected notes.
This commit is contained in:
committed by
Tres Finocchiaro
parent
7de9649b2f
commit
2c3df226ee
@@ -2121,9 +2121,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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user