25 int getControllerValue()
const noexcept {
return value; }
28 static int getControllerDefautValue (
int type);
30 int getMetadata()
const noexcept {
return metadata; }
34 BeatPosition getBeatPosition()
const noexcept {
return beatNumber; }
45 int getType() const noexcept {
return type; }
48 enum ExtraControllerTypes
50 programChangeType = 0x1001,
51 noteVelocities = 0x1003,
52 aftertouchType = 0x1004,
53 pitchWheelType = 0x1005,
55 channelPressureType = 0x1007,
57 UnknownType = 0x7fffffff
60 static juce::String getControllerTypeName (
int type)
noexcept;
62 static int bankIDToCoarse (
int id) {
return (
id & 0xff00) >> 8; }
63 static int bankIDToFine (
int id) {
return id & 0xff; }
69 friend class MidiList;
71 BeatPosition beatNumber;
72 int type, value, metadata;
74 void updatePropertiesFromState() noexcept;
76 MidiControllerEvent() = delete;
77 MidiControllerEvent (const MidiControllerEvent&) = delete;
79 JUCE_LEAK_DETECTOR (MidiControllerEvent)