3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005 - 2012 Christian Schoenebeck * |
* Copyright (C) 2005 - 2014 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
9 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
76 |
type_control_change, |
type_control_change, |
77 |
type_sysex, ///< MIDI system exclusive message |
type_sysex, ///< MIDI system exclusive message |
78 |
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 |
79 |
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 |
80 |
|
type_channel_pressure, ///< a.k.a. aftertouch |
81 |
|
type_note_pressure, ///< polyphonic key pressure (aftertouch) |
82 |
} Type; |
} Type; |
83 |
union { |
union { |
84 |
/// Note-on and note-off event specifics |
/// Note-on and note-off event specifics |
105 |
struct _Sysex { |
struct _Sysex { |
106 |
uint Size; ///< Data length (in bytes) of MIDI system exclusive message. |
uint Size; ///< Data length (in bytes) of MIDI system exclusive message. |
107 |
} Sysex; |
} Sysex; |
108 |
|
/// Channel Pressure (aftertouch) event specifics |
109 |
|
struct _ChannelPressure { |
110 |
|
uint8_t Value; ///< New aftertouch / pressure value for keys on that channel. |
111 |
|
uint8_t Channel; ///< MIDI channel (0..15) |
112 |
|
} ChannelPressure; |
113 |
|
/// Polyphonic Note Pressure (aftertouch) event specifics |
114 |
|
struct _NotePressure { |
115 |
|
uint8_t Key; ///< MIDI note number where key pressure (polyphonic aftertouch) changed. |
116 |
|
uint8_t Value; ///< New pressure value for note. |
117 |
|
uint8_t Channel; ///< MIDI channel (0..15) |
118 |
|
} NotePressure; |
119 |
} Param; |
} Param; |
120 |
EngineChannel* pEngineChannel; ///< Pointer to the EngineChannel where this event occured on, NULL means Engine global event (e.g. SysEx message). |
EngineChannel* pEngineChannel; ///< Pointer to the EngineChannel where this event occured on, NULL means Engine global event (e.g. SysEx message). |
121 |
MidiInputPort* pMidiInputPort; ///< Pointer to the MIDI input port on which this event occured (NOTE: currently only for global events, that is SysEx messages) |
MidiInputPort* pMidiInputPort; ///< Pointer to the MIDI input port on which this event occured (NOTE: currently only for global events, that is SysEx messages) |