2451 |
if(pMidiDevice == NULL) throw Exception("Couldn't find virtual MIDI device"); |
if(pMidiDevice == NULL) throw Exception("Couldn't find virtual MIDI device"); |
2452 |
|
|
2453 |
if (MidiMsg == "NOTE_ON") { |
if (MidiMsg == "NOTE_ON") { |
2454 |
|
pMidiDevice->SendNoteOnToDevice(Arg1, Arg2); |
2455 |
bool b = pMidiDevice->SendNoteOnToSampler(Arg1, Arg2); |
bool b = pMidiDevice->SendNoteOnToSampler(Arg1, Arg2); |
2456 |
if (!b) throw Exception("MIDI event failed: " + MidiMsg + " " + ToString(Arg1) + " " + ToString(Arg2)); |
if (!b) throw Exception("MIDI event failed: " + MidiMsg + " " + ToString(Arg1) + " " + ToString(Arg2)); |
2457 |
} else if (MidiMsg == "NOTE_OFF") { |
} else if (MidiMsg == "NOTE_OFF") { |
2458 |
|
pMidiDevice->SendNoteOffToDevice(Arg1, Arg2); |
2459 |
bool b = pMidiDevice->SendNoteOffToSampler(Arg1, Arg2); |
bool b = pMidiDevice->SendNoteOffToSampler(Arg1, Arg2); |
2460 |
if (!b) throw Exception("MIDI event failed: " + MidiMsg + " " + ToString(Arg1) + " " + ToString(Arg2)); |
if (!b) throw Exception("MIDI event failed: " + MidiMsg + " " + ToString(Arg1) + " " + ToString(Arg2)); |
2461 |
} else { |
} else { |
2692 |
} |
} |
2693 |
result.Add("KEY_BINDINGS", ss.str()); |
result.Add("KEY_BINDINGS", ss.str()); |
2694 |
|
|
2695 |
|
b = false; |
2696 |
std::stringstream ss2; |
std::stringstream ss2; |
2697 |
for (int i = 0; i < 128; i++) { |
for (int i = 0; i < 128; i++) { |
2698 |
if (info.KeySwitchBindings[i]) { |
if (info.KeySwitchBindings[i]) { |