Functions
tADSR2

Functions

void tADSR2_init (tADSR2 *const, float attack, float decay, float sustain, float release, LEAF *const leaf)
 Initialize a tADSR2 to the default mempool of a LEAF instance. More...
 
void tADSR2_initToPool (tADSR2 *const, float attack, float decay, float sustain, float release, tMempool *const)
 Initialize a tADSR2 to a specified mempool. More...
 
void tADSR2_free (tADSR2 *const)
 Free a tADSR2 from its mempool. More...
 
float tADSR2_tick (tADSR2 *const)
 
void tADSR2_setAttack (tADSR2 *const, float attack)
 
void tADSR2_setDecay (tADSR2 *const, float decay)
 
void tADSR2_setSustain (tADSR2 *const, float sustain)
 
void tADSR2_setRelease (tADSR2 *const, float release)
 
void tADSR2_setLeakFactor (tADSR2 *const, float leakFactor)
 
void tADSR2_on (tADSR2 *const, float velocity)
 
void tADSR2_off (tADSR2 *const)
 

Detailed Description

Function Documentation

◆ tADSR2_init()

void tADSR2_init ( tADSR2 * const  ,
float  attack,
float  decay,
float  sustain,
float  release,
LEAF *const  leaf 
)

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

Parameters
adsrA pointer to the tADSR2 to initialize.
leafA pointer to the leaf instance.

◆ tADSR2_initToPool()

void tADSR2_initToPool ( tADSR2 * const  ,
float  attack,
float  decay,
float  sustain,
float  release,
tMempool * const   
)

Initialize a tADSR2 to a specified mempool.

Parameters
adsrA pointer to the tADSR2 to initialize.
mempoolA pointer to the tMempool to use.

◆ tADSR2_free()

void tADSR2_free ( tADSR2 * const  )

Free a tADSR2 from its mempool.

Parameters
adsrA pointer to the tADSR2 to free.

◆ tADSR2_tick()

float tADSR2_tick ( tADSR2 * const  )
Parameters
adsrA pointer to the relevant tADSR2.

◆ tADSR2_setAttack()

void tADSR2_setAttack ( tADSR2 * const  ,
float  attack 
)
Parameters
adsrA pointer to the relevant tADSR2.

◆ tADSR2_setDecay()

void tADSR2_setDecay ( tADSR2 * const  ,
float  decay 
)
Parameters
adsrA pointer to the relevant tADSR2.

◆ tADSR2_setSustain()

void tADSR2_setSustain ( tADSR2 * const  ,
float  sustain 
)
Parameters
adsrA pointer to the relevant tADSR2.

◆ tADSR2_setRelease()

void tADSR2_setRelease ( tADSR2 * const  ,
float  release 
)
Parameters
adsrA pointer to the relevant tADSR2.

◆ tADSR2_setLeakFactor()

void tADSR2_setLeakFactor ( tADSR2 * const  ,
float  leakFactor 
)
Parameters
adsrA pointer to the relevant tADSR2.

◆ tADSR2_on()

void tADSR2_on ( tADSR2 * const  ,
float  velocity 
)
Parameters
adsrA pointer to the relevant tADSR2.

◆ tADSR2_off()

void tADSR2_off ( tADSR2 * const  )
Parameters
adsrA pointer to the relevant tADSR2.