From 4c24ee2be0d0195b940ea5b26c97664cfe5bb7ab Mon Sep 17 00:00:00 2001 From: hogliux Date: Thu, 13 Oct 2022 20:14:32 +0200 Subject: [PATCH] MPE: Fix incorrect order of jlimit parameters --- modules/juce_audio_utils/gui/juce_MPEKeyboardComponent.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/juce_audio_utils/gui/juce_MPEKeyboardComponent.h b/modules/juce_audio_utils/gui/juce_MPEKeyboardComponent.h index e070fcdbf1..b149bd6bb1 100644 --- a/modules/juce_audio_utils/gui/juce_MPEKeyboardComponent.h +++ b/modules/juce_audio_utils/gui/juce_MPEKeyboardComponent.h @@ -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.