/[svn]/linuxsampler/trunk/src/engines/sfz/SfzSignalUnitRack.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/sfz/SfzSignalUnitRack.h

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

revision 2237 by iliev, Fri Aug 12 13:07:05 2011 UTC revision 2238 by iliev, Fri Aug 12 17:30:47 2011 UTC
# Line 32  Line 32 
32  #include "../common/SineLFO.h"  #include "../common/SineLFO.h"
33    
34  namespace LinuxSampler { namespace sfz {  namespace LinuxSampler { namespace sfz {
35      const int MaxUnitCount = 1000;      const int MaxUnitCount = 200;
36      const int maxEgCount = 100; // Maximum number of v2 envelope generators      const int maxEgCount = 30; // Maximum number of v2 envelope generators
37      const int maxLfoCount = 100; // Maximum number of v2 LFOs      const int maxLfoCount = 30; // Maximum number of v2 LFOs
38            
39      class Voice;      class Voice;
40      class SfzSignalUnitRack;      class SfzSignalUnitRack;
# Line 90  namespace LinuxSampler { namespace sfz { Line 90  namespace LinuxSampler { namespace sfz {
90            
91      class SmoothCCUnit: public CurveCCUnit {      class SmoothCCUnit: public CurveCCUnit {
92          protected:          protected:
93              Smoother Smoothers[128];              FixedArray<Smoother> Smoothers;
94          public:          public:
95              SmoothCCUnit(SfzSignalUnitRack* rack, Listener* l = NULL): CurveCCUnit(rack, l) { }              SmoothCCUnit(SfzSignalUnitRack* rack, Listener* l = NULL): CurveCCUnit(rack, l), Smoothers(MaxCCs) { }
96                            
97              virtual void AddSmoothCC(uint8_t Controller, float Influence, short int Curve, float Smooth);              virtual void AddSmoothCC(uint8_t Controller, float Influence, short int Curve, float Smooth);
98                
99                virtual void RemoveAllCCs() { CurveCCUnit::RemoveAllCCs(); Smoothers.clear(); }
100      };      };
101            
102            

Legend:
Removed from v.2237  
changed lines
  Added in v.2238

  ViewVC Help
Powered by ViewVC