Skip to content

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

inline daisysp::FormantOscillator::FormantOscillator () 

function Init

void daisysp::FormantOscillator::Init (
    float sample_rate
) 

Initializes the FormantOscillator module.

Parameters:

  • sample_rate - The sample rate of the audio engine being run.

function Process

float daisysp::FormantOscillator::Process () 

Get the next sample


function SetCarrierFreq

void daisysp::FormantOscillator::SetCarrierFreq (
    float freq
) 

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

Parameters:

  • freq Frequency in Hz

function SetFormantFreq

void daisysp::FormantOscillator::SetFormantFreq (
    float freq
) 

Set the formant frequency.

Parameters:

  • freq Frequency in Hz

function SetPhaseShift

void daisysp::FormantOscillator::SetPhaseShift (
    float ps
) 

Set the amount of phase shift

Parameters:

  • ps Typically 0-1. Works with other values though, including negative.

function ~FormantOscillator

inline daisysp::FormantOscillator::~FormantOscillator () 


The documentation for this class was generated from the following file external-docs/DaisySP/Source/Synthesis/formantosc.h