Skip to content

Commit

Permalink
fix the virtual keyboard causes the notes E and F to be triggered (#7604
Browse files Browse the repository at this point in the history
) + clang error
  • Loading branch information
DevelopMan303 committed Feb 13, 2025
1 parent 72dcb4e commit f122a41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/surge-xt/SurgeSynthEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -743,13 +743,13 @@ bool SurgeSynthEditor::keyPressed(const juce::KeyPress &key, juce::Component *or
midiKeyboardOctave = std::clamp(midiKeyboardOctave - 1, 0, 9);
keyboard->setKeyPressBaseOctave(midiKeyboardOctave);
// sometimes a note off command get lost
processor.midiKeyboardState.allNotesOff(keyboard->getMidiChannel() );
processor.midiKeyboardState.allNotesOff(keyboard->getMidiChannel());
return true;
case Surge::GUI::VKB_OCTAVE_UP:
midiKeyboardOctave = std::clamp(midiKeyboardOctave + 1, 0, 9);
keyboard->setKeyPressBaseOctave(midiKeyboardOctave);
// sometimes a note off command get lost
processor.midiKeyboardState.allNotesOff(keyboard->getMidiChannel() );
processor.midiKeyboardState.allNotesOff(keyboard->getMidiChannel());
return true;
case Surge::GUI::VKB_VELOCITY_DOWN_10PCT:
midiKeyboardVelocity = std::clamp(midiKeyboardVelocity - 0.1f, 0.f, 1.f);
Expand Down

0 comments on commit f122a41

Please sign in to comment.