--- linuxsampler/trunk/src/network/lscpserver.cpp 2008/09/10 15:14:31 1773 +++ linuxsampler/trunk/src/network/lscpserver.cpp 2008/09/11 18:11:06 1774 @@ -2451,9 +2451,11 @@ if(pMidiDevice == NULL) throw Exception("Couldn't find virtual MIDI device"); if (MidiMsg == "NOTE_ON") { + pMidiDevice->SendNoteOnToDevice(Arg1, Arg2); bool b = pMidiDevice->SendNoteOnToSampler(Arg1, Arg2); if (!b) throw Exception("MIDI event failed: " + MidiMsg + " " + ToString(Arg1) + " " + ToString(Arg2)); } else if (MidiMsg == "NOTE_OFF") { + pMidiDevice->SendNoteOffToDevice(Arg1, Arg2); bool b = pMidiDevice->SendNoteOffToSampler(Arg1, Arg2); if (!b) throw Exception("MIDI event failed: " + MidiMsg + " " + ToString(Arg1) + " " + ToString(Arg2)); } else { @@ -2690,6 +2692,7 @@ } result.Add("KEY_BINDINGS", ss.str()); + b = false; std::stringstream ss2; for (int i = 0; i < 128; i++) { if (info.KeySwitchBindings[i]) {