38 |
const int iDestination = iChanOffset + i; |
const int iDestination = iChanOffset + i; |
39 |
Routing.push_back(iDestination); |
Routing.push_back(iDestination); |
40 |
} |
} |
41 |
MidiFxSendController = MidiCtrl; |
SetMidiController(MidiCtrl); |
42 |
sName = Name; |
sName = Name; |
43 |
|
|
44 |
// create an EngineChannel unique ID for this FxSend instance |
// create an EngineChannel unique ID for this FxSend instance |
128 |
} |
} |
129 |
|
|
130 |
void FxSend::SetMidiController(uint8_t MidiCtrl) throw (Exception) { |
void FxSend::SetMidiController(uint8_t MidiCtrl) throw (Exception) { |
131 |
if (MidiCtrl & 0x7f) |
if (MidiCtrl >> 7) |
132 |
throw Exception("Invalid MIDI controller"); |
throw Exception("Invalid MIDI controller " + ToString((int)MidiCtrl)); |
133 |
MidiFxSendController = MidiCtrl; |
MidiFxSendController = MidiCtrl; |
134 |
} |
} |
135 |
|
|