Functions

Saw wave oscillator with minBLEP anti-aliasing. More...

Functions

void tMBSaw_init (tMBSaw *const osc, LEAF *const leaf)
 Initialize a tMBSaw to the default mempool of a LEAF instance. More...
 
void tMBSaw_initToPool (tMBSaw *const osc, tMempool *const mempool)
 Initialize a tMBSaw to a specified mempool. More...
 
void tMBSaw_free (tMBSaw *const osc)
 Free a tMBSaw from its mempool. More...
 
float tMBSaw_tick (tMBSaw *const osc)
 Tick the oscillator. More...
 
void tMBSaw_setFreq (tMBSaw *const osc, float f)
 Set the frequency of the oscillator. More...
 
float tMBSaw_sync (tMBSaw *const osc, float sync)
 Sync this oscillator to another signal. More...
 
void tMBSaw_setSyncMode (tMBSaw *const osc, int hardOrSoft)
 Set the sync behavior of the oscillator. More...
 

Detailed Description

Saw wave oscillator with minBLEP anti-aliasing.

Function Documentation

◆ tMBSaw_init()

void tMBSaw_init ( tMBSaw *const  osc,
LEAF *const  leaf 
)

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

Parameters
oscA pointer to the tMBSaw to initialize.

◆ tMBSaw_initToPool()

void tMBSaw_initToPool ( tMBSaw *const  osc,
tMempool *const  mempool 
)

Initialize a tMBSaw to a specified mempool.

Parameters
oscA pointer to the tMBSaw to initialize.

◆ tMBSaw_free()

void tMBSaw_free ( tMBSaw *const  osc)

Free a tMBSaw from its mempool.

Parameters
oscA pointer to the tMBSaw to free.

◆ tMBSaw_tick()

float tMBSaw_tick ( tMBSaw *const  osc)

Tick the oscillator.

Parameters
oscA pointer to the relevant tMBSaw.
Returns
The ticked sample.

◆ tMBSaw_setFreq()

void tMBSaw_setFreq ( tMBSaw *const  osc,
float  f 
)

Set the frequency of the oscillator.

Parameters
oscA pointer to the relevant tMBSaw.
freqThe new frequency.

◆ tMBSaw_sync()

float tMBSaw_sync ( tMBSaw *const  osc,
float  sync 
)

Sync this oscillator to another signal.

Parameters
oscA pointer to the relevant tMBSaw.
syncA sample of the signal to sync to.
Returns
The passed in sample.

◆ tMBSaw_setSyncMode()

void tMBSaw_setSyncMode ( tMBSaw *const  osc,
int  hardOrSoft 
)

Set the sync behavior of the oscillator.

Parameters
hardOrSoft0 for hard sync, 1 for soft sync