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 - 2008 Christian Schoenebeck * |
* Copyright (C) 2005 - 2012 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 * |
83 |
struct _Note { |
struct _Note { |
84 |
uint8_t Key; ///< MIDI key number of note-on / note-off event. |
uint8_t Key; ///< MIDI key number of note-on / note-off event. |
85 |
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. |
86 |
|
uint8_t Channel; ///< MIDI channel (0..15) |
87 |
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). |
88 |
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). |
89 |
|
void* pRegion; ///< Engine specific pointer to instrument region |
90 |
} Note; |
} Note; |
91 |
/// Control change event specifics |
/// Control change event specifics |
92 |
struct _CC { |
struct _CC { |
93 |
uint8_t Controller; ///< MIDI controller number of control change event. |
uint8_t Controller; ///< MIDI controller number of control change event. |
94 |
uint8_t Value; ///< Controller Value of control change event. |
uint8_t Value; ///< Controller Value of control change event. |
95 |
|
uint8_t Channel; ///< MIDI channel (0..15) |
96 |
} CC; |
} CC; |
97 |
/// Pitchbend event specifics |
/// Pitchbend event specifics |
98 |
struct _Pitch { |
struct _Pitch { |
99 |
int16_t Pitch; ///< Pitch value of pitchbend event. |
int16_t Pitch; ///< Pitch value of pitchbend event. |
100 |
|
uint8_t Channel; ///< MIDI channel (0..15) |
101 |
} Pitch; |
} Pitch; |
102 |
/// MIDI system exclusive event specifics |
/// MIDI system exclusive event specifics |
103 |
struct _Sysex { |
struct _Sysex { |