/[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 1040 by schoenebeck, Wed Feb 7 15:41:31 2007 UTC revision 1135 by iliev, Thu Mar 29 09:40:45 2007 UTC
# Line 118  namespace LinuxSampler { Line 118  namespace LinuxSampler {
118      }      }
119    
120      void FxSend::SetLevel(float f) {      void FxSend::SetLevel(float f) {
121            if(fLevel == f) return;
122          fLevel = f;          fLevel = f;
123            SetInfoChanged(true);
124      }      }
125    
126      void FxSend::SetLevel(uint8_t iMidiValue) {      void FxSend::SetLevel(uint8_t iMidiValue) {
127          fLevel = float(iMidiValue & 0x7f) / 127.0f;          fLevel = float(iMidiValue & 0x7f) / 127.0f;
128            SetInfoChanged(true);
129      }      }
130    
131      void FxSend::Reset() {      void FxSend::Reset() {
132          fLevel = DEFAULT_FX_SEND_LEVEL;          SetLevel(DEFAULT_FX_SEND_LEVEL);
133      }      }
134    
135      uint8_t FxSend::MidiController() {      uint8_t FxSend::MidiController() {
# Line 143  namespace LinuxSampler { Line 146  namespace LinuxSampler {
146          return sName;          return sName;
147      }      }
148    
149        void FxSend::SetName(String Name) {
150            sName = Name;
151        }
152    
153      uint FxSend::Id() {      uint FxSend::Id() {
154          return iId;          return iId;
155      }      }
156    
157        void FxSend::SetInfoChanged(bool b) {
158            bInfoChanged = b;
159        }
160    
161        bool FxSend::IsInfoChanged() {
162            return bInfoChanged;
163        }
164    
165  } // namespace LinuxSampler  } // namespace LinuxSampler

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

  ViewVC Help
Powered by ViewVC