Browse Source

Make sure that the velocity value set in MidiKeyboardComponent::setVelocity() is used when sending notes

tags/2021-05-28
ed 7 years ago
parent
commit
c3e7c47252
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_audio_utils/gui/juce_MidiKeyboardComponent.cpp

+ 1
- 1
modules/juce_audio_utils/gui/juce_MidiKeyboardComponent.cpp View File

@@ -712,7 +712,7 @@ void MidiKeyboardComponent::updateNoteUnderMouse (Point<float> pos, bool isDown,
auto newNote = xyToNote (pos, mousePositionVelocity);
auto oldNote = mouseOverNotes.getUnchecked (fingerNum);
auto oldNoteDown = mouseDownNotes.getUnchecked (fingerNum);
auto eventVelocity = useMousePositionForVelocity ? mousePositionVelocity * velocity : 1.0f;
auto eventVelocity = useMousePositionForVelocity ? mousePositionVelocity * velocity : velocity;
if (oldNote != newNote)
{


Loading…
Cancel
Save