32 |
* math (without branches) to synthesize the pulse wave. |
* math (without branches) to synthesize the pulse wave. |
33 |
*/ |
*/ |
34 |
template<LFO::range_type_t RANGE, int WIDTH /* in permilles */> |
template<LFO::range_type_t RANGE, int WIDTH /* in permilles */> |
35 |
class PulseLFO : public LFOBase<RANGE> { |
class LFOPulse : public LFOBase<RANGE> { |
36 |
public: |
public: |
37 |
|
|
38 |
/** |
/** |
40 |
* |
* |
41 |
* @param Max - maximum value of the output levels |
* @param Max - maximum value of the output levels |
42 |
*/ |
*/ |
43 |
PulseLFO(float Max) : LFOBase<RANGE>::LFOBase(Max) { |
LFOPulse(float Max) : LFOBase<RANGE>::LFOBase(Max) { |
44 |
} |
} |
45 |
|
|
46 |
/** |
/** |
161 |
int c; |
int c; |
162 |
float normalizer; |
float normalizer; |
163 |
}; |
}; |
|
|
|
|
template<LFO::range_type_t RANGE> |
|
|
class SquareLFO : public PulseLFO<RANGE, 500> { |
|
|
public: |
|
|
SquareLFO(float Max) : PulseLFO<RANGE, 500>::PulseLFO(Max) { } |
|
|
}; |
|
164 |
|
|
165 |
} // namespace LinuxSampler |
} // namespace LinuxSampler |
166 |
|
|