mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-19 01:04:20 +00:00
MPE: Fix incorrect order of jlimit parameters
This commit is contained in:
parent
1cfe2ed11a
commit
4c24ee2be0
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue