Skip to content

daisysp::FormantOscillator

Formant Oscillator Module. More...

#include <formantosc.h>

Public Functions

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

Detailed Description

class daisysp::FormantOscillator;

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.

Public Functions Documentation

function FormantOscillator

inline FormantOscillator()

function ~FormantOscillator

inline ~FormantOscillator()

function Init

void Init(
    float sample_rate
)

Parameters:

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

Initializes the FormantOscillator module.


function Process

float Process()

Get the next sample


function SetFormantFreq

void SetFormantFreq(
    float freq
)

Parameters:

  • freq Frequency in Hz

Set the formant frequency.


function SetCarrierFreq

void SetCarrierFreq(
    float freq
)

Parameters:

  • freq Frequency in Hz

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


function SetPhaseShift

void SetPhaseShift(
    float ps
)

Parameters:

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

Set the amount of phase shift

---

Updated on 2024-01-03 at 19:38:46 +0000