/[svn]/linuxsampler/trunk/src/engines/common/SignalUnit.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/common/SignalUnit.h

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

revision 2229 by iliev, Wed Aug 3 17:11:40 2011 UTC revision 2230 by iliev, Fri Aug 5 17:59:10 2011 UTC
# Line 338  namespace LinuxSampler { Line 338  namespace LinuxSampler {
338          protected:          protected:
339              class CC {              class CC {
340                  public:                  public:
341                      uint8_t Controller;  ///< MIDI controller number.                      uint8_t   Controller;  ///< MIDI controller number.
342                      uint8_t Value;       ///< Controller Value.                      uint8_t   Value;       ///< Controller Value.
343                      float   Influence;                      short int Curve;       ///< specifies the curve type
344                        float     Influence;
345                                            
346                      CC() {                      CC(uint8_t Controller = 0, float Influence = 0.0f, short int Curve = -1) {
                         CC(0, 0.0f);  
                     }  
                       
                     CC(uint8_t Controller, float Influence) {  
347                          this->Controller = Controller;                          this->Controller = Controller;
348                          this->Value = 0;                          this->Value = 0;
349                            this->Curve = Curve;
350                          this->Influence = Influence;                          this->Influence = Influence;
351                      }                      }
352                                            
# Line 359  namespace LinuxSampler { Line 357  namespace LinuxSampler {
357                          Controller = cc.Controller;                          Controller = cc.Controller;
358                          Value = cc.Value;                          Value = cc.Value;
359                          Influence = cc.Influence;                          Influence = cc.Influence;
360                            Curve = cc.Curve;
361                      }                      }
362              };              };
363                            
# Line 380  namespace LinuxSampler { Line 379  namespace LinuxSampler {
379                  SignalUnit::Copy(Unit);                  SignalUnit::Copy(Unit);
380              }              }
381                            
382              void AddCC(uint8_t Controller, float Influence) {              void AddCC(uint8_t Controller, float Influence, short int Curve = -1) {
383                  Ctrls.add(CC(Controller, Influence));                  Ctrls.add(CC(Controller, Influence, Curve));
384              }              }
385                            
386              void RemoveAllCCs() {              void RemoveAllCCs() {

Legend:
Removed from v.2229  
changed lines
  Added in v.2230

  ViewVC Help
Powered by ViewVC