Browse Source

MPE: Fix incorrect order of jlimit parameters

v7.0.9
hogliux Fabian Renn-Giles 3 years ago
parent
commit
4c24ee2be0
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      modules/juce_audio_utils/gui/juce_MPEKeyboardComponent.h

+ 3
- 3
modules/juce_audio_utils/gui/juce_MPEKeyboardComponent.h View File

@@ -57,13 +57,13 @@ public:
//==============================================================================
/** Sets the note-on velocity, or "strike", value that will be used when triggering new notes. */
void setVelocity (float newVelocity) { velocity = jlimit (newVelocity, 0.0f, 1.0f); }
void setVelocity (float newVelocity) { velocity = jlimit (0.0f, 1.0f, newVelocity); }
/** Sets the pressure value that will be used for new notes. */
void setPressure (float newPressure) { pressure = jlimit (newPressure, 0.0f, 1.0f); }
void setPressure (float newPressure) { pressure = jlimit (0.0f, 1.0f, newPressure); }
/** Sets the note-off velocity, or "lift", value that will be used when notes are released. */
void setLift (float newLift) { lift = jlimit (newLift, 0.0f, 1.0f); }
void setLift (float newLift) { lift = jlimit (0.0f, 1.0f, newLift); }
/** Use this to enable the mouse source pressure to be used for the initial note-on
velocity, or "strike", value if the mouse source supports it.


Loading…
Cancel
Save