Formant Oscillator Module.
More...
#include <formantosc.h>
Formant Oscillator Module.
- 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.
◆ Init()
void FormantOscillator::Init |
( |
float | sample_rate | ) |
|
Initializes the FormantOscillator module.
- Parameters
-
sample_rate | - The sample rate of the audio engine being run. |
◆ Process()
float FormantOscillator::Process |
( |
| ) |
|
◆ SetCarrierFreq()
void FormantOscillator::SetCarrierFreq |
( |
float | freq | ) |
|
Set the carrier frequency. This is the "main" frequency.
- Parameters
-
◆ SetFormantFreq()
void FormantOscillator::SetFormantFreq |
( |
float | freq | ) |
|
Set the formant frequency.
- Parameters
-
◆ SetPhaseShift()
void FormantOscillator::SetPhaseShift |
( |
float | ps | ) |
|
Set the amount of phase shift
- Parameters
-
ps | Typically 0-1. Works with other values though, including negative. |
The documentation for this class was generated from the following files:
- Source/Synthesis/formantosc.h
- Source/Synthesis/formantosc.cpp