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; |
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 |
|
|