Functions
tPBPulse

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

Functions

void tPBPulse_init (tPBPulse *const osc, LEAF *const leaf)
 Initialize a tPBPulse to the default mempool of a LEAF instance. More...
 
void tPBPulse_initToPool (tPBPulse *const osc, tMempool *const)
 Initialize a tPBPulse to a specified mempool. More...
 
void tPBPulse_free (tPBPulse *const osc)
 Free a tPBPulse from its mempool. More...
 
float tPBPulse_tick (tPBPulse *const osc)
 
void tPBPulse_setFreq (tPBPulse *const osc, float freq)
 
void tPBPulse_setWidth (tPBPulse *const osc, float width)
 

Detailed Description

Pulse wave oscillator with polyBLEP anti-aliasing.

Function Documentation

◆ tPBPulse_init()

void tPBPulse_init ( tPBPulse *const  osc,
LEAF *const  leaf 
)

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

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

◆ tPBPulse_initToPool()

void tPBPulse_initToPool ( tPBPulse *const  osc,
tMempool * const   
)

Initialize a tPBPulse to a specified mempool.

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

◆ tPBPulse_free()

void tPBPulse_free ( tPBPulse *const  osc)

Free a tPBPulse from its mempool.

Parameters
oscA pointer to the tPBPulse to free.

◆ tPBPulse_tick()

float tPBPulse_tick ( tPBPulse *const  osc)
Parameters
oscA pointer to the relevant tPBPulse.

◆ tPBPulse_setFreq()

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

◆ tPBPulse_setWidth()

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