Functions
tCompactWavetable

A more space-efficient anti-aliased wavetable oscillator than tWavetable but with slightly worse fidelity. More...

Functions

void tCompactWavetable_free (tCompactWavetable *const osc)
 Free a tCompactWavetable from its mempool. More...
 
float tCompactWavetable_tick (tCompactWavetable *const osc)
 Tick a tCompactWavetable oscillator. More...
 
void tCompactWavetable_setFreq (tCompactWavetable *const osc, float freq)
 Set the frequency of a tCompactWavetable oscillator. More...
 

Detailed Description

A more space-efficient anti-aliased wavetable oscillator than tWavetable but with slightly worse fidelity.

Function Documentation

◆ tCompactWavetable_free()

void tCompactWavetable_free ( tCompactWavetable *const  osc)

Free a tCompactWavetable from its mempool.

Parameters
oscA pointer to the tCompactWavetable to free.

◆ tCompactWavetable_tick()

float tCompactWavetable_tick ( tCompactWavetable *const  osc)

Tick a tCompactWavetable oscillator.

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

◆ tCompactWavetable_setFreq()

void tCompactWavetable_setFreq ( tCompactWavetable *const  osc,
float  freq 
)

Set the frequency of a tCompactWavetable oscillator.

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