Functions
tMBTriangle

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

Functions

void tMBTriangle_init (tMBTriangle *const osc, LEAF *const leaf)
 Initialize a tMBTriangle to the default mempool of a LEAF instance. More...
 
void tMBTriangle_initToPool (tMBTriangle *const osc, tMempool *const mempool)
 Initialize a tMBTriangle to a specified mempool. More...
 
void tMBTriangle_free (tMBTriangle *const osc)
 Free a tMBTriangle from its mempool. More...
 
float tMBTriangle_tick (tMBTriangle *const osc)
 
void tMBTriangle_setFreq (tMBTriangle *const osc, float f)
 
void tMBTriangle_setWidth (tMBTriangle *const osc, float w)
 
float tMBTriangle_sync (tMBTriangle *const osc, float sync)
 
void tMBTriangle_setSyncMode (tMBTriangle *const osc, int hardOrSoft)
 Set the sync behavior of the oscillator. More...
 

Detailed Description

Triangle wave oscillator with minBLEP anti-aliasing.

Function Documentation

◆ tMBTriangle_init()

void tMBTriangle_init ( tMBTriangle *const  osc,
LEAF *const  leaf 
)

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

Parameters
oscA pointer to the tMBTriangle to initialize.

◆ tMBTriangle_initToPool()

void tMBTriangle_initToPool ( tMBTriangle *const  osc,
tMempool *const  mempool 
)

Initialize a tMBTriangle to a specified mempool.

Parameters
oscA pointer to the tMBTriangle to initialize.

◆ tMBTriangle_free()

void tMBTriangle_free ( tMBTriangle *const  osc)

Free a tMBTriangle from its mempool.

Parameters
oscA pointer to the tMBTriangle to free.

◆ tMBTriangle_tick()

float tMBTriangle_tick ( tMBTriangle *const  osc)
Parameters
oscA pointer to the relevant tMBTriangle.

◆ tMBTriangle_setFreq()

void tMBTriangle_setFreq ( tMBTriangle *const  osc,
float  f 
)
Parameters
oscA pointer to the relevant tMBTriangle.

◆ tMBTriangle_setWidth()

void tMBTriangle_setWidth ( tMBTriangle *const  osc,
float  w 
)
Parameters
oscA pointer to the relevant tMBTriangle.

◆ tMBTriangle_sync()

float tMBTriangle_sync ( tMBTriangle *const  osc,
float  sync 
)
Parameters
oscA pointer to the relevant tMBTriangle.

◆ tMBTriangle_setSyncMode()

void tMBTriangle_setSyncMode ( tMBTriangle *const  osc,
int  hardOrSoft 
)

Set the sync behavior of the oscillator.

Parameters
hardOrSoft0 for hard sync, 1 for soft sync