Functions

Wavetable cycle/sine wave oscillator. More...

Functions

void tCycle_init (tCycle *const osc, LEAF *const leaf)
 Initialize a tCycle to the default mempool of a LEAF instance. More...
 
void tCycle_initToPool (tCycle *const osc, tMempool *const mempool)
 Initialize a tCycle to a specified mempool. More...
 
void tCycle_free (tCycle *const osc)
 Free a tCycle from its mempool. More...
 
float tCycle_tick (tCycle *const osc)
 Tick a tCycle oscillator. More...
 
void tCycle_setFreq (tCycle *const osc, float freq)
 Set the frequency of a tCycle oscillator. More...
 

Detailed Description

Wavetable cycle/sine wave oscillator.

Function Documentation

◆ tCycle_init()

void tCycle_init ( tCycle *const  osc,
LEAF *const  leaf 
)

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

Parameters
oscA pointer to the tCycle to initialize.
leafA pointer to the leaf instance.
Examples
basic-oscillators.c.

◆ tCycle_initToPool()

void tCycle_initToPool ( tCycle *const  osc,
tMempool *const  mempool 
)

Initialize a tCycle to a specified mempool.

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

◆ tCycle_free()

void tCycle_free ( tCycle *const  osc)

Free a tCycle from its mempool.

Parameters
oscA pointer to the tCycle to free.

◆ tCycle_tick()

float tCycle_tick ( tCycle *const  osc)

Tick a tCycle oscillator.

Parameters
oscA pointer to the relevant tCycle.
Returns
The ticked sample as a float from -1 to 1.
Examples
basic-oscillators.c.

◆ tCycle_setFreq()

void tCycle_setFreq ( tCycle *const  osc,
float  freq 
)

Set the frequency of a tCycle oscillator.

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



Examples
basic-oscillators.c.