Functions
tTriangle

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

Functions

void tTriangle_init (tTriangle *const osc, LEAF *const leaf)
 Initialize a tTriangle to the default mempool of a LEAF instance. More...
 
void tTriangle_initToPool (tTriangle *const osc, tMempool *const mempool)
 Initialize a tTriangle to a specified mempool. More...
 
void tTriangle_free (tTriangle *const osc)
 Free a tTriangle from its mempool. More...
 
float tTriangle_tick (tTriangle *const osc)
 Tick a tTriangle oscillator. More...
 
void tTriangle_setFreq (tTriangle *const osc, float freq)
 Set the frequency of a tTriangle oscillator. More...
 

Detailed Description

Anti-aliased wavetable triangle wave oscillator.

Function Documentation

◆ tTriangle_init()

void tTriangle_init ( tTriangle *const  osc,
LEAF *const  leaf 
)

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

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

◆ tTriangle_initToPool()

void tTriangle_initToPool ( tTriangle *const  osc,
tMempool *const  mempool 
)

Initialize a tTriangle to a specified mempool.

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

◆ tTriangle_free()

void tTriangle_free ( tTriangle *const  osc)

Free a tTriangle from its mempool.

Parameters
oscA pointer to the tTriangle to free.

◆ tTriangle_tick()

float tTriangle_tick ( tTriangle *const  osc)

Tick a tTriangle oscillator.

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

◆ tTriangle_setFreq()

void tTriangle_setFreq ( tTriangle *const  osc,
float  freq 
)

Set the frequency of a tTriangle oscillator.

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