Functions

Simple aliasing wavetable oscillator. More...

Functions

void tTable_init (tTable *const osc, float *table, int size, LEAF *const leaf)
 Initialize a tTable to the default mempool of a LEAF instance. More...
 
void tTable_initToPool (tTable *const osc, float *table, int size, tMempool *const mempool)
 Initialize a tTable to a specified mempool. More...
 
void tTable_free (tTable *const osc)
 Free a tTable from its mempool. More...
 
float tTable_tick (tTable *const osc)
 Tick a tTable oscillator. More...
 
void tTable_setFreq (tTable *const osc, float freq)
 Set the frequency of a tTable oscillator. More...
 

Detailed Description

Simple aliasing wavetable oscillator.

Function Documentation

◆ tTable_init()

void tTable_init ( tTable *const  osc,
float *  table,
int  size,
LEAF *const  leaf 
)

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

Parameters
oscA pointer to the tTable to initialize.
tableA pointer to the wavetable data.
sizeThe number of samples in the wavetable.
leafA pointer to the leaf instance.

◆ tTable_initToPool()

void tTable_initToPool ( tTable *const  osc,
float *  table,
int  size,
tMempool *const  mempool 
)

Initialize a tTable to a specified mempool.

Parameters
oscA pointer to the tTable to initialize.
tableA pointer to the wavetable data.
sizeThe number of samples in the wave table.
mempoolA pointer to the tMempool to use.

◆ tTable_free()

void tTable_free ( tTable *const  osc)

Free a tTable from its mempool.

Parameters
oscA pointer to the tTable to free.

◆ tTable_tick()

float tTable_tick ( tTable *const  osc)

Tick a tTable oscillator.

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

◆ tTable_setFreq()

void tTable_setFreq ( tTable *const  osc,
float  freq 
)

Set the frequency of a tTable oscillator.

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