Functions
tADSR3

Functions

void tADSR3_init (tADSR3 *const, float attack, float decay, float sustain, float release, LEAF *const leaf)
 Initialize a tADSR3 to the default mempool of a LEAF instance. More...
 
void tADSR3_initToPool (tADSR3 *const, float attack, float decay, float sustain, float release, tMempool *const)
 Initialize a tADSR3 to a specified mempool. More...
 
void tADSR3_free (tADSR3 *const)
 Free a tADSR3 from its mempool. More...
 
float tADSR3_tick (tADSR3 *const)
 
void tADSR3_setAttack (tADSR3 *const, float attack)
 
void tADSR3_setDecay (tADSR3 *const, float decay)
 
void tADSR3_setSustain (tADSR3 *const, float sustain)
 
void tADSR3_setRelease (tADSR3 *const, float release)
 
void tADSR3_setLeakFactor (tADSR3 *const, float leakFactor)
 
void tADSR3_on (tADSR3 *const, float velocity)
 
void tADSR3_off (tADSR3 *const)
 

Detailed Description

Function Documentation

◆ tADSR3_init()

void tADSR3_init ( tADSR3 * const  ,
float  attack,
float  decay,
float  sustain,
float  release,
LEAF *const  leaf 
)

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

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

◆ tADSR3_initToPool()

void tADSR3_initToPool ( tADSR3 * const  ,
float  attack,
float  decay,
float  sustain,
float  release,
tMempool * const   
)

Initialize a tADSR3 to a specified mempool.

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

◆ tADSR3_free()

void tADSR3_free ( tADSR3 * const  )

Free a tADSR3 from its mempool.

Parameters
adsrA pointer to the tADSR3 to free.

◆ tADSR3_tick()

float tADSR3_tick ( tADSR3 * const  )
Parameters
adsrA pointer to the relevant tADSR3.

◆ tADSR3_setAttack()

void tADSR3_setAttack ( tADSR3 * const  ,
float  attack 
)
Parameters
adsrA pointer to the relevant tADSR3.

◆ tADSR3_setDecay()

void tADSR3_setDecay ( tADSR3 * const  ,
float  decay 
)
Parameters
adsrA pointer to the relevant tADSR3.

◆ tADSR3_setSustain()

void tADSR3_setSustain ( tADSR3 * const  ,
float  sustain 
)
Parameters
adsrA pointer to the relevant tADSR3.

◆ tADSR3_setRelease()

void tADSR3_setRelease ( tADSR3 * const  ,
float  release 
)
Parameters
adsrA pointer to the relevant tADSR3.

◆ tADSR3_setLeakFactor()

void tADSR3_setLeakFactor ( tADSR3 * const  ,
float  leakFactor 
)
Parameters
adsrA pointer to the relevant tADSR3.

◆ tADSR3_on()

void tADSR3_on ( tADSR3 * const  ,
float  velocity 
)
Parameters
adsrA pointer to the relevant tADSR3.

◆ tADSR3_off()

void tADSR3_off ( tADSR3 * const  )
Parameters
adsrA pointer to the relevant tADSR3.