Class daisysp::VariableShapeOscillator¶
ClassList > daisysp > VariableShapeOscillator
Variable Waveshape Oscillator .More...
#include <variableshapeosc.h>
Public Functions¶
Type | Name |
---|---|
void | Init (float sample_rate) |
float | Process () |
void | SetFreq (float frequency) |
void | SetPW (float pw) |
void | SetSync (bool enable_sync) |
void | SetSyncFreq (float frequency) |
void | SetWaveshape (float waveshape) |
VariableShapeOscillator () |
|
~VariableShapeOscillator () |
Detailed Description¶
Author:
Ben Sergentanis
Date:
Dec 2020 Continuously variable waveform.
Ported from pichenettes/eurorack/plaits/dsp/oscillator/variable_shape_oscillator.h
to an independent module. Original code written by Emilie Gillet in 2016.
Public Functions Documentation¶
function Init¶
Initialize the oscillator
Parameters:
sample_rate
Audio engine sample rate
function Process¶
Get next sample
function SetFreq¶
Set master freq.
Parameters:
frequency
Freq in Hz.
function SetPW¶
Set pulse width / saw, ramp, tri.
Parameters:
pw
PW when shape is square. Saw, ramp, tri otherwise.
function SetSync¶
Whether or not to sync to the sync oscillator
Parameters:
enable_sync
True to turn sync on.
function SetSyncFreq¶
Set sync oscillator freq.
Parameters:
frequency
Freq in Hz.
function SetWaveshape¶
Switch from saw/ramp/tri to square.
Parameters:
waveshape
0 is saw/ramp/tri, 1 is square.
function VariableShapeOscillator¶
function ~VariableShapeOscillator¶
The documentation for this class was generated from the following file external-docs/DaisySP/Source/Synthesis/variableshapeosc.h