Functions

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

Functions

void tPulse_init (tPulse *const osc, LEAF *const leaf)
 Initialize a tPulse to the default mempool of a LEAF instance. More...
 
void tPulse_initToPool (tPulse *const osc, tMempool *const)
 Initialize a tPulse to a specified mempool. More...
 
void tPulse_free (tPulse *const osc)
 Free a tPulse from its mempool. More...
 
float tPulse_tick (tPulse *const osc)
 
void tPulse_setFreq (tPulse *const osc, float freq)
 
void tPulse_setWidth (tPulse *const osc, float width)
 

Detailed Description

Pulse wave oscillator with polyBLEP anti-aliasing.

Function Documentation

◆ tPulse_init()

void tPulse_init ( tPulse *const  osc,
LEAF *const  leaf 
)

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

Parameters
oscA pointer to the tPulse to initialize.
leafA pointer to the leaf instance.

◆ tPulse_initToPool()

void tPulse_initToPool ( tPulse *const  osc,
tMempool * const   
)

Initialize a tPulse to a specified mempool.

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

◆ tPulse_free()

void tPulse_free ( tPulse *const  osc)

Free a tPulse from its mempool.

Parameters
oscA pointer to the tPulse to free.

◆ tPulse_tick()

float tPulse_tick ( tPulse *const  osc)
Parameters
oscA pointer to the relevant tPulse.

◆ tPulse_setFreq()

void tPulse_setFreq ( tPulse *const  osc,
float  freq 
)
Parameters
oscA pointer to the relevant tPulse.

◆ tPulse_setWidth()

void tPulse_setWidth ( tPulse *const  osc,
float  width 
)
Parameters
oscA pointer to the relevant tPulse.