Skip to content

Commit f504204

Browse files
authored
Fix Pitch Bending, Strum, and Knife Tools Affecting Per-Note Velocity/Panning (#8243)
1 parent eb46e6f commit f504204

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/gui/editors/PianoRoll.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2501,18 +2501,17 @@ void PianoRoll::mouseMoveEvent( QMouseEvent * me )
25012501
{
25022502
updateKnifePos(me, false);
25032503
}
2504-
if (m_editMode == EditMode::Detuning && (m_parameterEditDownLeft || m_parameterEditDownRight))
2504+
else if (m_editMode == EditMode::Detuning && (m_parameterEditDownLeft || m_parameterEditDownRight))
25052505
{
25062506
// Update the current dragging/adding/removal of automation nodes in the detuning curves of the selected notes.
25072507
updateParameterEditPos(me, Note::ParameterType::Detuning);
25082508
}
2509-
// Update Strum position if we are on knife mode
2510-
if (m_editMode == EditMode::Strum && m_strumEnabled)
2509+
// Update Strum position if we are in strum mode
2510+
else if (m_editMode == EditMode::Strum && m_strumEnabled)
25112511
{
25122512
updateStrumPos(me, false, me->modifiers() & Qt::ShiftModifier);
25132513
}
2514-
2515-
if (pos.y() > PR_TOP_MARGIN || m_action != Action::None)
2514+
else if (pos.y() > PR_TOP_MARGIN || m_action != Action::None)
25162515
{
25172516
bool edit_note = (pos.y() > noteEditTop())
25182517
&& m_action != Action::SelectNotes;

0 commit comments

Comments
 (0)