DaisySP
|
Variable Waveshape Oscillator. More...
#include <variableshapeosc.h>
Public Member Functions | |
void | Init (float sample_rate) |
float | Process () |
void | SetFreq (float frequency) |
void | SetPW (float pw) |
void | SetWaveshape (float waveshape) |
void | SetSync (bool enable_sync) |
void | SetSyncFreq (float frequency) |
Variable Waveshape Oscillator.
Initialize the oscillator
sample_rate | Audio engine sample rate |
float VariableShapeOscillator::Process | ( | ) |
Get next sample
Set master freq.
frequency | Freq in Hz. |
Set pulse width / saw, ramp, tri.
pw | PW when shape is square. Saw, ramp, tri otherwise. |
Whether or not to sync to the sync oscillator
enable_sync | True to turn sync on. |
Set sync oscillator freq.
frequency | Freq in Hz. |
Switch from saw/ramp/tri to square.
waveshape | 0 is saw/ramp/tri, 1 is square. |