Functions

Functions

void tADSR_init (tADSR *const adsrenv, float attack, float decay, float sustain, float release, LEAF *const leaf)
 Initialize a tADSR to the default mempool of a LEAF instance. More...
 
void tADSR_initToPool (tADSR *const adsrenv, float attack, float decay, float sustain, float release, tMempool *const mp)
 Initialize a tADSR to a specified mempool. More...
 
void tADSR_free (tADSR *const)
 Free a tADSR from its mempool. More...
 
float tADSR_tick (tADSR *const)
 
void tADSR_setAttack (tADSR *const, float attack)
 
void tADSR_setDecay (tADSR *const, float decay)
 
void tADSR_setSustain (tADSR *const, float sustain)
 
void tADSR_setRelease (tADSR *const, float release)
 
void tADSR_setLeakFactor (tADSR *const, float leakFactor)
 
void tADSR_on (tADSR *const, float velocity)
 
void tADSR_off (tADSR *const)
 

Detailed Description

Function Documentation

◆ tADSR_init()

void tADSR_init ( tADSR *const  adsrenv,
float  attack,
float  decay,
float  sustain,
float  release,
LEAF *const  leaf 
)

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

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

◆ tADSR_initToPool()

void tADSR_initToPool ( tADSR *const  adsrenv,
float  attack,
float  decay,
float  sustain,
float  release,
tMempool *const  mp 
)

Initialize a tADSR to a specified mempool.

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

◆ tADSR_free()

void tADSR_free ( tADSR * const  )

Free a tADSR from its mempool.

Parameters
adsrA pointer to the tADSR to free.

◆ tADSR_tick()

float tADSR_tick ( tADSR * const  )
Parameters
adsrA pointer to the relevant tADSR.

◆ tADSR_setAttack()

void tADSR_setAttack ( tADSR * const  ,
float  attack 
)
Parameters
adsrA pointer to the relevant tADSR.

◆ tADSR_setDecay()

void tADSR_setDecay ( tADSR * const  ,
float  decay 
)
Parameters
adsrA pointer to the relevant tADSR.

◆ tADSR_setSustain()

void tADSR_setSustain ( tADSR * const  ,
float  sustain 
)
Parameters
adsrA pointer to the relevant tADSR.

◆ tADSR_setRelease()

void tADSR_setRelease ( tADSR * const  ,
float  release 
)
Parameters
adsrA pointer to the relevant tADSR.

◆ tADSR_setLeakFactor()

void tADSR_setLeakFactor ( tADSR * const  ,
float  leakFactor 
)
Parameters
adsrA pointer to the relevant tADSR.

◆ tADSR_on()

void tADSR_on ( tADSR * const  ,
float  velocity 
)
Parameters
adsrA pointer to the relevant tADSR.

◆ tADSR_off()

void tADSR_off ( tADSR * const  )
Parameters
adsrA pointer to the relevant tADSR.