Class daisysp::FormantOscillator¶
ClassList > daisysp > FormantOscillator
Formant Oscillator Module.More...
#include <formantosc.h>
Public Functions¶
Type | Name |
---|---|
FormantOscillator () |
|
void | Init (float sample_rate) |
float | Process () |
void | SetCarrierFreq (float freq) |
void | SetFormantFreq (float freq) |
void | SetPhaseShift (float ps) |
~FormantOscillator () |
Detailed Description¶
Author:
Ben Sergentanis
Date:
Dec 2020 Sinewave with aliasing-free phase reset.
Ported from pichenettes/eurorack/plaits/dsp/oscillator/formant_oscillator.h to an independent module. Original code written by Emilie Gillet in 2016.
Public Functions Documentation¶
function FormantOscillator¶
function Init¶
Initializes the FormantOscillator module.
Parameters:
sample_rate
- The sample rate of the audio engine being run.
function Process¶
Get the next sample
function SetCarrierFreq¶
Set the carrier frequency. This is the "main" frequency.
Parameters:
freq
Frequency in Hz
function SetFormantFreq¶
Set the formant frequency.
Parameters:
freq
Frequency in Hz
function SetPhaseShift¶
Set the amount of phase shift
Parameters:
ps
Typically 0-1. Works with other values though, including negative.
function ~FormantOscillator¶
The documentation for this class was generated from the following file external-docs/DaisySP/Source/Synthesis/formantosc.h