#include <Oscillator.h>
Public Member Functions | |
Sawtooth (float frequency=220, float ampl=1.0, float offset=0.0, float phase=0.0) | |
void | nextBuffer (Buffer &outputBuffer, unsigned outBufNum) throw (CException) |
Sawtooth::Sawtooth | ( | float | frequency = 220 , |
|
float | ampl = 1.0 , |
|||
float | offset = 0.0 , |
|||
float | phase = 0.0 | |||
) |
void Sawtooth::nextBuffer | ( | Buffer & | outputBuffer, | |
unsigned | outBufNum | |||
) | throw (CException) [virtual] |
really compute the next buffer given an offset base channel; this is called by nextBuffer, possibly multiple times
Reimplemented from csl::UnitGenerator.
References DECLARE_PHASED_CONTROLS, DECLARE_SCALABLE_CONTROLS, LOAD_PHASED_CONTROLS, LOAD_SCALABLE_CONTROLS, csl::logMsg(), mFrameRate, UPDATE_PHASED_CONTROLS, and UPDATE_SCALABLE_CONTROLS.