Functions
tMBPulse

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

Functions

void tMBPulse_init (tMBPulse *const osc, LEAF *const leaf)
 Initialize a tMBPulse to the default mempool of a LEAF instance. More...
 
void tMBPulse_initToPool (tMBPulse *const osc, tMempool *const mempool)
 Initialize a tMBPulse to a specified mempool. More...
 
void tMBPulse_free (tMBPulse *const osc)
 Free a tMBPulse from its mempool. More...
 
float tMBPulse_tick (tMBPulse *const osc)
 
void tMBPulse_setFreq (tMBPulse *const osc, float f)
 
void tMBPulse_setWidth (tMBPulse *const osc, float w)
 
float tMBPulse_sync (tMBPulse *const osc, float sync)
 
void tMBPulse_setSyncMode (tMBPulse *const osc, int hardOrSoft)
 Set the sync behavior of the oscillator. More...
 

Detailed Description

Pulse wave oscillator with minBLEP anti-aliasing.

Function Documentation

◆ tMBPulse_init()

void tMBPulse_init ( tMBPulse *const  osc,
LEAF *const  leaf 
)

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

Parameters
oscA pointer to the tMBPulse to initialize.

◆ tMBPulse_initToPool()

void tMBPulse_initToPool ( tMBPulse *const  osc,
tMempool *const  mempool 
)

Initialize a tMBPulse to a specified mempool.

Parameters
oscA pointer to the tMBPulse to initialize.

◆ tMBPulse_free()

void tMBPulse_free ( tMBPulse *const  osc)

Free a tMBPulse from its mempool.

Parameters
oscA pointer to the tMBPulse to free.

◆ tMBPulse_tick()

float tMBPulse_tick ( tMBPulse *const  osc)
Parameters
oscA pointer to the relevant tMBPulse.

◆ tMBPulse_setFreq()

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

◆ tMBPulse_setWidth()

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

◆ tMBPulse_sync()

float tMBPulse_sync ( tMBPulse *const  osc,
float  sync 
)
Parameters
oscA pointer to the relevant tMBPulse.

◆ tMBPulse_setSyncMode()

void tMBPulse_setSyncMode ( tMBPulse *const  osc,
int  hardOrSoft 
)

Set the sync behavior of the oscillator.

Parameters
hardOrSoft0 for hard sync, 1 for soft sync