/[svn]/linuxsampler/trunk/src/network/lscpserver.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/network/lscpserver.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1771 by iliev, Wed Sep 10 15:02:24 2008 UTC revision 1774 by iliev, Thu Sep 11 18:11:06 2008 UTC
# Line 2451  String LSCPServer::SendChannelMidiData(S Line 2451  String LSCPServer::SendChannelMidiData(S
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 {
# Line 2690  String LSCPServer::GetFileInstrumentInfo Line 2692  String LSCPServer::GetFileInstrumentInfo
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]) {

Legend:
Removed from v.1771  
changed lines
  Added in v.1774

  ViewVC Help
Powered by ViewVC