DaisySP
Loading...
Searching...
No Matches
Public Member Functions | List of all members
daisysp::FormantOscillator Class Reference

Formant Oscillator Module. More...

#include <formantosc.h>

Public Member Functions

void Init (float sample_rate)
 
float Process ()
 
void SetFormantFreq (float freq)
 
void SetCarrierFreq (float freq)
 
void SetPhaseShift (float ps)
 

Detailed Description

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.

Member Function Documentation

◆ 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 ( )

Get the next sample

◆ SetCarrierFreq()

void FormantOscillator::SetCarrierFreq ( float freq)

Set the carrier frequency. This is the "main" frequency.

Parameters
freqFrequency in Hz

◆ SetFormantFreq()

void FormantOscillator::SetFormantFreq ( float freq)

Set the formant frequency.

Parameters
freqFrequency in Hz

◆ SetPhaseShift()

void FormantOscillator::SetPhaseShift ( float ps)

Set the amount of phase shift

Parameters
psTypically 0-1. Works with other values though, including negative.

The documentation for this class was generated from the following files: