Functions
tEnvelope

Basic attack-decay envelope. More...

Functions

void tEnvelope_init (tEnvelope *const, float attack, float decay, int loop, LEAF *const leaf)
 Initialize a tEnvelope to the default mempool of a LEAF instance. More...
 
void tEnvelope_initToPool (tEnvelope *const, float attack, float decay, int loop, tMempool *const)
 Initialize a tEnvelope to a specified mempool. More...
 
void tEnvelope_free (tEnvelope *const)
 Free a tEnvelope from its mempool. More...
 
float tEnvelope_tick (tEnvelope *const)
 
void tEnvelope_setAttack (tEnvelope *const, float attack)
 
void tEnvelope_setDecay (tEnvelope *const, float decay)
 
void tEnvelope_loop (tEnvelope *const, int loop)
 
void tEnvelope_on (tEnvelope *const, float velocity)
 

Detailed Description

Basic attack-decay envelope.

Function Documentation

◆ tEnvelope_init()

void tEnvelope_init ( tEnvelope * const  ,
float  attack,
float  decay,
int  loop,
LEAF *const  leaf 
)

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

Parameters
envelopeA pointer to the tEnvelope to initialize.
leafA pointer to the leaf instance.

◆ tEnvelope_initToPool()

void tEnvelope_initToPool ( tEnvelope * const  ,
float  attack,
float  decay,
int  loop,
tMempool * const   
)

Initialize a tEnvelope to a specified mempool.

Parameters
envelopeA pointer to the tEnvelope to initialize.
mempoolA pointer to the tMempool to use.

◆ tEnvelope_free()

void tEnvelope_free ( tEnvelope * const  )

Free a tEnvelope from its mempool.

Parameters
envelopeA pointer to the tEnvelope to free.

◆ tEnvelope_tick()

float tEnvelope_tick ( tEnvelope * const  )
Parameters
envelopeA pointer to the relevant tEnvelope.

◆ tEnvelope_setAttack()

void tEnvelope_setAttack ( tEnvelope * const  ,
float  attack 
)
Parameters
envelopeA pointer to the relevant tEnvelope.

◆ tEnvelope_setDecay()

void tEnvelope_setDecay ( tEnvelope * const  ,
float  decay 
)
Parameters
envelopeA pointer to the relevant tEnvelope.

◆ tEnvelope_loop()

void tEnvelope_loop ( tEnvelope * const  ,
int  loop 
)
Parameters
envelopeA pointer to the relevant tEnvelope.

◆ tEnvelope_on()

void tEnvelope_on ( tEnvelope * const  ,
float  velocity 
)
Parameters
envelopeA pointer to the relevant tEnvelope.