96 mWaveform = nWaveform;
Waveform
Shapes of the oscillation, the values of mWaveform.
Definition lfo.h:14
@ kWaveformSine
Definition lfo.h:15
@ kWaveformSquare
Definition lfo.h:17
@ kWaveformTriangle
Definition lfo.h:16
@ kWaveformConstant
Definition lfo.h:18
void Stop()
Stop the clock of the oscillator.
int GetWaveform() const
Definition lfo.h:90
float GetPeriod() const
Definition lfo.h:110
float ValueAt(float fSeconds) const
Report the value of the oscillation at a time.
void SetWaveform(int nWaveform)
Definition lfo.h:95
float GetPhase() const
Definition lfo.h:100
void SetPeriod(float fPeriod)
Definition lfo.h:115
float GetCycles(float fSeconds) const
Convert a time to cycles of the oscillation.
void Start()
Start the clock of the oscillator.
Lfo()
Construct a stopped sine oscillator with a period of one second.
float Tick()
Add the time since the last call to the elapsed time and restart the clock.
void SetPhase(float fPhase)
Definition lfo.h:105
float Evaluate()
Advance the clock and report the value of the oscillation.
Stopwatch on the EE cycle counter.
Definition timer.h:16