/[svn]/linuxsampler/trunk/src/engines/FxSend.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/FxSend.cpp

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

revision 1025 by schoenebeck, Tue Jan 9 23:51:32 2007 UTC revision 1026 by schoenebeck, Sun Jan 14 17:10:59 2007 UTC
# Line 38  namespace LinuxSampler { Line 38  namespace LinuxSampler {
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
# Line 128  namespace LinuxSampler { Line 128  namespace LinuxSampler {
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    

Legend:
Removed from v.1025  
changed lines
  Added in v.1026

  ViewVC Help
Powered by ViewVC