You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
295 B
24 lines
295 B
9 years ago
|
#ifndef LFO_H_
|
||
|
#define LFO_H_
|
||
|
|
||
|
class Lfo
|
||
|
{
|
||
|
public:
|
||
|
Lfo();
|
||
|
~Lfo();
|
||
|
|
||
|
void initialize(float sampleRate, float freq);
|
||
|
void setFrequency(float freq);
|
||
|
void setPhase(float phase);
|
||
|
|
||
|
public:
|
||
|
float getValue();
|
||
|
|
||
|
private:
|
||
|
float sampleRate;
|
||
|
float frequency;
|
||
|
float phase;
|
||
|
float index;
|
||
|
};
|
||
|
|
||
|
#endif
|