Functions
tADSR4

Functions

void tADSR4_init (tADSR4 *const, float attack, float decay, float sustain, float release, float *expBuffer, int bufferSize, LEAF *const leaf)
 Initialize a tADSR4 to the default mempool of a LEAF instance. More...
 
void tADSR4_initToPool (tADSR4 *const, float attack, float decay, float sustain, float release, float *expBuffer, int bufferSize, tMempool *const)
 Initialize a tADSR4 to a specified mempool. More...
 
void tADSR4_free (tADSR4 *const)
 Free a tADSR4 from its mempool. More...
 
float tADSR4_tick (tADSR4 *const)
 
float tADSR4_tickNoInterp (tADSR4 *const adsrenv)
 
void tADSR4_setAttack (tADSR4 *const, float attack)
 
void tADSR4_setDecay (tADSR4 *const, float decay)
 
void tADSR4_setSustain (tADSR4 *const, float sustain)
 
void tADSR4_setRelease (tADSR4 *const, float release)
 
void tADSR4_setLeakFactor (tADSR4 *const, float leakFactor)
 
void tADSR4_on (tADSR4 *const, float velocity)
 
void tADSR4_off (tADSR4 *const)
 

Detailed Description

Function Documentation

◆ tADSR4_init()

void tADSR4_init ( tADSR4 * const  ,
float  attack,
float  decay,
float  sustain,
float  release,
float *  expBuffer,
int  bufferSize,
LEAF *const  leaf 
)

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

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

◆ tADSR4_initToPool()

void tADSR4_initToPool ( tADSR4 * const  ,
float  attack,
float  decay,
float  sustain,
float  release,
float *  expBuffer,
int  bufferSize,
tMempool * const   
)

Initialize a tADSR4 to a specified mempool.

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

◆ tADSR4_free()

void tADSR4_free ( tADSR4 * const  )

Free a tADSR4 from its mempool.

Parameters
adsrA pointer to the tADSR4 to free.

◆ tADSR4_tick()

float tADSR4_tick ( tADSR4 * const  )
Parameters
adsrA pointer to the relevant tADSR4.

◆ tADSR4_tickNoInterp()

float tADSR4_tickNoInterp ( tADSR4 *const  adsrenv)
Parameters
adsrA pointer to the relevant tADSR4.

◆ tADSR4_setAttack()

void tADSR4_setAttack ( tADSR4 * const  ,
float  attack 
)
Parameters
adsrA pointer to the relevant tADSR4.

◆ tADSR4_setDecay()

void tADSR4_setDecay ( tADSR4 * const  ,
float  decay 
)
Parameters
adsrA pointer to the relevant tADSR4.

◆ tADSR4_setSustain()

void tADSR4_setSustain ( tADSR4 * const  ,
float  sustain 
)
Parameters
adsrA pointer to the relevant tADSR4.

◆ tADSR4_setRelease()

void tADSR4_setRelease ( tADSR4 * const  ,
float  release 
)
Parameters
adsrA pointer to the relevant tADSR4.

◆ tADSR4_setLeakFactor()

void tADSR4_setLeakFactor ( tADSR4 * const  ,
float  leakFactor 
)
Parameters
adsrA pointer to the relevant tADSR4.

◆ tADSR4_on()

void tADSR4_on ( tADSR4 * const  ,
float  velocity 
)
Parameters
adsrA pointer to the relevant tADSR4.

◆ tADSR4_off()

void tADSR4_off ( tADSR4 * const  )
Parameters
adsrA pointer to the relevant tADSR4.