Functions
tSawtooth

Anti-aliased wavetable saw wave oscillator. More...

Functions

void tSawtooth_init (tSawtooth *const osc, LEAF *const leaf)
 Initialize a tSawtooth to the default mempool of a LEAF instance. More...
 
void tSawtooth_initToPool (tSawtooth *const osc, tMempool *const mempool)
 Initialize a tSawtooth to a specified mempool. More...
 
void tSawtooth_free (tSawtooth *const osc)
 Free a tSawtooth from its mempool. More...
 
float tSawtooth_tick (tSawtooth *const osc)
 Tick a tSawtooth oscillator. More...
 
void tSawtooth_setFreq (tSawtooth *const osc, float freq)
 Set the frequency of a tSawtooth oscillator. More...
 

Detailed Description

Anti-aliased wavetable saw wave oscillator.

Function Documentation

◆ tSawtooth_init()

void tSawtooth_init ( tSawtooth *const  osc,
LEAF *const  leaf 
)

Initialize a tSawtooth to the default mempool of a LEAF instance.

Parameters
oscA pointer to the tSawtooth to initialize.
leafA pointer to the leaf instance.

◆ tSawtooth_initToPool()

void tSawtooth_initToPool ( tSawtooth *const  osc,
tMempool *const  mempool 
)

Initialize a tSawtooth to a specified mempool.

Parameters
oscA pointer to the tSawtooth to initialize.
mempoolA pointer to the tMempool to use.

◆ tSawtooth_free()

void tSawtooth_free ( tSawtooth *const  osc)

Free a tSawtooth from its mempool.

Parameters
oscA pointer to the tSawtooth to free.

◆ tSawtooth_tick()

float tSawtooth_tick ( tSawtooth *const  osc)

Tick a tSawtooth oscillator.

Parameters
oscA pointer to the relevant tSawtooth.
Returns
The ticked sample as a float from -1 to 1.

◆ tSawtooth_setFreq()

void tSawtooth_setFreq ( tSawtooth *const  osc,
float  freq 
)

Set the frequency of a tSawtooth oscillator.

Parameters
oscA pointer to the relevant tSawtooth.
freqThe frequency to set the oscillator to.