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, 2006 Christian Schoenebeck * |
* Copyright (C) 2005 - 2007 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 * |
38 |
uiMidiBankMsb = 0; |
uiMidiBankMsb = 0; |
39 |
uiMidiBankLsb = 0; |
uiMidiBankLsb = 0; |
40 |
uiMidiProgram = 0; |
uiMidiProgram = 0; |
41 |
|
uiMidiRpnMsb = uiMidiRpnLsb = 0; |
42 |
bProgramChangeReceived = bMidiBankMsbReceived = bMidiBankLsbReceived = false; |
bProgramChangeReceived = bMidiBankMsbReceived = bMidiBankLsbReceived = false; |
43 |
iMidiInstrumentMap = NO_MIDI_INSTRUMENT_MAP; |
iMidiInstrumentMap = NO_MIDI_INSTRUMENT_MAP; |
44 |
} |
} |
159 |
iMidiInstrumentMap = MidiMap; // assign the new map ID |
iMidiInstrumentMap = MidiMap; // assign the new map ID |
160 |
} |
} |
161 |
|
|
162 |
|
void EngineChannel::SetMidiRpnControllerMsb(uint8_t CtrlMSB) { |
163 |
|
uiMidiRpnMsb = CtrlMSB; |
164 |
|
} |
165 |
|
|
166 |
|
void EngineChannel::SetMidiRpnControllerLsb(uint8_t CtrlLSB) { |
167 |
|
uiMidiRpnLsb = CtrlLSB; |
168 |
|
} |
169 |
|
|
170 |
|
int EngineChannel::GetMidiRpnController() { |
171 |
|
return (uiMidiRpnMsb << 8) | uiMidiRpnLsb; |
172 |
|
} |
173 |
|
|
174 |
} // namespace LinuxSampler |
} // namespace LinuxSampler |