134 |
public: |
public: |
135 |
Event(){} |
Event(){} |
136 |
enum type_t { |
enum type_t { |
137 |
type_note_on, |
type_note_on, ///< (real) MIDI note-on event |
138 |
type_note_off, |
type_note_off, ///< (real) MIDI note-off event |
139 |
type_pitchbend, |
type_pitchbend, ///< MIDI pitch bend wheel change event |
140 |
type_control_change, |
type_control_change, ///< MIDI CC event |
141 |
type_sysex, ///< MIDI system exclusive message |
type_sysex, ///< MIDI system exclusive message |
142 |
type_cancel_release, ///< transformed either from a note-on or sustain-pedal-down event |
type_cancel_release_key, ///< transformed either from a (real) MIDI note-on or sustain-pedal-down event |
143 |
type_release, ///< transformed either from a note-off or sustain-pedal-up event |
type_release_key, ///< transformed either from a (real) MIDI note-off or sustain-pedal-up event |
144 |
|
type_release_note, ///< transformed from a type_stop_note event |
145 |
type_channel_pressure, ///< a.k.a. aftertouch |
type_channel_pressure, ///< a.k.a. aftertouch |
146 |
type_note_pressure, ///< polyphonic key pressure (aftertouch) |
type_note_pressure, ///< polyphonic key pressure (aftertouch) |
147 |
type_note_synth_param, ///< change a note's synthesis parameters (upon real-time instrument script function calls) |
type_play_note, ///< caused by a call to built-in instrument script function play_note() |
148 |
|
type_stop_note, ///< caused by a call to built-in instrument script function note_off() |
149 |
|
type_note_synth_param, ///< change a note's synthesis parameters (upon real-time instrument script function calls, i.e. change_vol(), change_tune(), change_pan(), etc.) |
150 |
} Type; |
} Type; |
151 |
enum synth_param_t { |
enum synth_param_t { |
152 |
synth_param_volume, |
synth_param_volume, |
163 |
uint8_t Velocity; ///< Trigger or release velocity of note-on / note-off event. |
uint8_t Velocity; ///< Trigger or release velocity of note-on / note-off event. |
164 |
int8_t Layer; ///< Layer index (usually only used if a note-on event has to be postponed, e.g. due to shortage of free voices). |
int8_t Layer; ///< Layer index (usually only used if a note-on event has to be postponed, e.g. due to shortage of free voices). |
165 |
int8_t ReleaseTrigger; ///< If new voice should be a release triggered voice (actually boolean field and usually only used if a note-on event has to be postponed, e.g. due to shortage of free voices). |
int8_t ReleaseTrigger; ///< If new voice should be a release triggered voice (actually boolean field and usually only used if a note-on event has to be postponed, e.g. due to shortage of free voices). |
166 |
note_id_t ID; ///< Unique numeric ID of the @c Note object associated with this note (on) event. |
note_id_t ID; ///< Unique numeric ID of the @c Note object associated with this note event. |
167 |
note_id_t ParentNoteID; ///< If not zero: Unique numeric ID of the parent @c Note object that shall become parent of resulting new Note object of this Event. So this is used to associate a new note with a previous note, i.e. to release the new note once the parent note was released. |
note_id_t ParentNoteID; ///< If not zero: Unique numeric ID of the parent @c Note object that shall become parent of resulting new Note object of this Event. So this is used to associate a new note with a previous note, i.e. to release the new note once the parent note was released. |
168 |
void* pRegion; ///< Engine specific pointer to instrument region |
void* pRegion; ///< Engine specific pointer to instrument region |
169 |
} Note; |
} Note; |