71 |
type_note_off, |
type_note_off, |
72 |
type_pitchbend, |
type_pitchbend, |
73 |
type_control_change, |
type_control_change, |
74 |
|
type_sysex, ///< MIDI system exclusive message |
75 |
type_cancel_release, ///< transformed either from a note-on or sustain-pedal-down event |
type_cancel_release, ///< transformed either from a note-on or sustain-pedal-down event |
76 |
type_release ///< transformed either from a note-off or sustain-pedal-up event |
type_release ///< transformed either from a note-off or sustain-pedal-up event |
77 |
} Type; |
} Type; |
90 |
uint8_t Velocity; ///< Trigger or release velocity for note-on or note-off events. |
uint8_t Velocity; ///< Trigger or release velocity for note-on or note-off events. |
91 |
uint8_t Value; ///< Value for control change events. |
uint8_t Value; ///< Value for control change events. |
92 |
}; |
}; |
93 |
int16_t Pitch; ///< Pitch value for pitchbend events. |
union { |
94 |
|
int16_t Pitch; ///< Pitch value for pitchbend events. |
95 |
|
uint Size; ///< Data length (in bytes) for MIDI system exclusive messages. |
96 |
|
}; |
97 |
|
|
98 |
inline uint FragmentPos() { |
inline uint FragmentPos() { |
99 |
if (iFragmentPos >= 0) return (uint) iFragmentPos; |
if (iFragmentPos >= 0) return (uint) iFragmentPos; |