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

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

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

revision 1040 by schoenebeck, Fri Dec 15 21:40:27 2006 UTC revision 1041 by schoenebeck, Wed Feb 7 17:45:19 2007 UTC
# Line 3  Line 3 
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *
6   *   Copyright (C) 2005, 2006 Christian Schoenebeck                        *   *   Copyright (C) 2005 - 2007 Christian Schoenebeck                       *
7   *                                                                         *   *                                                                         *
8   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
9   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 38  namespace LinuxSampler { Line 38  namespace LinuxSampler {
38          uiMidiBankMsb = 0;          uiMidiBankMsb = 0;
39          uiMidiBankLsb = 0;          uiMidiBankLsb = 0;
40          uiMidiProgram = 0;          uiMidiProgram = 0;
41            uiMidiRpnMsb = uiMidiRpnLsb = 0;
42          bProgramChangeReceived = bMidiBankMsbReceived = bMidiBankLsbReceived = false;          bProgramChangeReceived = bMidiBankMsbReceived = bMidiBankLsbReceived = false;
43          iMidiInstrumentMap = NO_MIDI_INSTRUMENT_MAP;          iMidiInstrumentMap = NO_MIDI_INSTRUMENT_MAP;
44      }      }
# Line 158  namespace LinuxSampler { Line 159  namespace LinuxSampler {
159          iMidiInstrumentMap = MidiMap; // assign the new map ID          iMidiInstrumentMap = MidiMap; // assign the new map ID
160      }      }
161    
162        void EngineChannel::SetMidiRpnControllerMsb(uint8_t CtrlMSB) {
163            uiMidiRpnMsb = CtrlMSB;
164        }
165    
166        void EngineChannel::SetMidiRpnControllerLsb(uint8_t CtrlLSB) {
167            uiMidiRpnLsb = CtrlLSB;
168        }
169    
170        int EngineChannel::GetMidiRpnController() {
171            return (uiMidiRpnMsb << 8) | uiMidiRpnLsb;
172        }
173    
174  } // namespace LinuxSampler  } // namespace LinuxSampler

Legend:
Removed from v.1040  
changed lines
  Added in v.1041

  ViewVC Help
Powered by ViewVC