83 whiteNoteColourId = 0x1006000,
84 blackNoteColourId = 0x1006001,
85 textLabelColourId = 0x1006002,
86 noteCircleFillColourId = 0x1006003,
87 noteCircleOutlineColourId = 0x1006004
98 void focusLost (FocusChangeType)
override;
100 void colourChanged()
override;
104 struct MPENoteComponent;
111 void updateNoteData (
MPENote&);
113 void noteAdded (
MPENote)
override;
114 void notePressureChanged (
MPENote)
override;
115 void notePitchbendChanged (
MPENote)
override;
116 void noteTimbreChanged (
MPENote)
override;
117 void noteReleased (
MPENote)
override;
118 void zoneLayoutChanged()
override;
120 void timerCallback()
override;
131 void updateNoteComponentBounds (
const MPENote&, MPENoteComponent&);
132 void updateNoteComponents();
134 void updateZoneLayout();
145 float velocity = 0.7f, pressure = 1.0f, lift = 0.0f;
146 bool useMouseSourcePressureForStrike =
false;
147 int perNotePitchbendRange = 48;
A graphics context, used for drawing a component or image.
A base class for drawing a custom MIDI keyboard component.
Orientation
The direction of the keyboard.
Derive from this class to be informed about any changes in the MPE notes played by this instrument,...
This class represents an instrument handling MPE.
A component that displays an MPE-compatible keyboard, whose notes can be clicked on.
void setUseMouseSourcePressureForStrike(bool usePressureForStrike)
Use this to enable the mouse source pressure to be used for the initial note-on velocity,...
void setPressure(float newPressure)
Sets the pressure value that will be used for new notes.
void setLift(float newLift)
Sets the note-off velocity, or "lift", value that will be used when notes are released.
void setVelocity(float newVelocity)
Sets the note-on velocity, or "strike", value that will be used when triggering new notes.
ColourIds
A set of colour IDs to use to change the colour of various aspects of the keyboard.
This class represents a single value for any of the MPE dimensions of control.
Contains position and status information about a mouse event.
A pair of (x, y) coordinates.
Manages a rectangle and allows geometric operations to be performed on it.
Makes repeated callbacks to a virtual method at a specified time interval.
Type jlimit(Type lowerLimit, Type upperLimit, Type valueToConstrain) noexcept
Constrains a value to keep it within a given range.
This struct represents a playing MPE note.