Variable Waveshape Oscillator.
More...
#include <variableshapeosc.h>
Variable Waveshape Oscillator.
- 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.
◆ Init()
void VariableShapeOscillator::Init |
( |
float | sample_rate | ) |
|
Initialize the oscillator
- Parameters
-
sample_rate | Audio engine sample rate |
◆ Process()
float VariableShapeOscillator::Process |
( |
| ) |
|
◆ SetFreq()
void VariableShapeOscillator::SetFreq |
( |
float | frequency | ) |
|
Set master freq.
- Parameters
-
◆ SetPW()
void VariableShapeOscillator::SetPW |
( |
float | pw | ) |
|
Set pulse width / saw, ramp, tri.
- Parameters
-
pw | PW when shape is square. Saw, ramp, tri otherwise. |
◆ SetSync()
void VariableShapeOscillator::SetSync |
( |
bool | enable_sync | ) |
|
Whether or not to sync to the sync oscillator
- Parameters
-
enable_sync | True to turn sync on. |
◆ SetSyncFreq()
void VariableShapeOscillator::SetSyncFreq |
( |
float | frequency | ) |
|
Set sync oscillator freq.
- Parameters
-
◆ SetWaveshape()
void VariableShapeOscillator::SetWaveshape |
( |
float | waveshape | ) |
|
Switch from saw/ramp/tri to square.
- Parameters
-
waveshape | 0 is saw/ramp/tri, 1 is square. |
The documentation for this class was generated from the following files: