Functions
tFeedbackLeveler

An auto VCA that you put into a feedback circuit to make it stay at the same level. More...

Functions

void tFeedbackLeveler_init (tFeedbackLeveler *const, float targetLevel, float factor, float strength, int mode, LEAF *const leaf)
 Initialize a tFeedbackLeveler to the default mempool of a LEAF instance. More...
 
void tFeedbackLeveler_initToPool (tFeedbackLeveler *const, float targetLevel, float factor, float strength, int mode, tMempool *const)
 Initialize a tFeedbackLeveler to a specified mempool. More...
 
void tFeedbackLeveler_free (tFeedbackLeveler *const)
 Free a tFeedbackLeveler from its mempool. More...
 
float tFeedbackLeveler_tick (tFeedbackLeveler *const, float input)
 
float tFeedbackLeveler_sample (tFeedbackLeveler *const)
 
void tFeedbackLeveler_setTargetLevel (tFeedbackLeveler *const, float TargetLevel)
 
void tFeedbackLeveler_setFactor (tFeedbackLeveler *const, float factor)
 
void tFeedbackLeveler_setMode (tFeedbackLeveler *const, int mode)
 
void tFeedbackLeveler_setStrength (tFeedbackLeveler *const, float strength)
 

Detailed Description

An auto VCA that you put into a feedback circuit to make it stay at the same level.

An auto VCA that you put into a feedback circuit to make it stay at the same level. It can enforce level bidirectionally (amplifying and attenuating as needed) or just attenutating. The former option allows for infinite sustain strings, for example, while the latter option allows for decaying strings, which can never exceed a specific level.

Function Documentation

◆ tFeedbackLeveler_init()

void tFeedbackLeveler_init ( tFeedbackLeveler * const  ,
float  targetLevel,
float  factor,
float  strength,
int  mode,
LEAF *const  leaf 
)

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

Parameters
levelerA pointer to the tFeedbackLeveler to initialize.
leafA pointer to the leaf instance.

◆ tFeedbackLeveler_initToPool()

void tFeedbackLeveler_initToPool ( tFeedbackLeveler * const  ,
float  targetLevel,
float  factor,
float  strength,
int  mode,
tMempool * const   
)

Initialize a tFeedbackLeveler to a specified mempool.

Parameters
levelerA pointer to the tFeedbackLeveler to initialize.
mempoolA pointer to the tMempool to use.

◆ tFeedbackLeveler_free()

void tFeedbackLeveler_free ( tFeedbackLeveler * const  )

Free a tFeedbackLeveler from its mempool.

Parameters
levelerA pointer to the tFeedbackLeveler to free.

◆ tFeedbackLeveler_tick()

float tFeedbackLeveler_tick ( tFeedbackLeveler * const  ,
float  input 
)
Parameters
levelerA pointer to the relevant tFeedbackLeveler.

◆ tFeedbackLeveler_sample()

float tFeedbackLeveler_sample ( tFeedbackLeveler * const  )
Parameters
levelerA pointer to the relevant tFeedbackLeveler.

◆ tFeedbackLeveler_setTargetLevel()

void tFeedbackLeveler_setTargetLevel ( tFeedbackLeveler * const  ,
float  TargetLevel 
)
Parameters
levelerA pointer to the relevant tFeedbackLeveler.

◆ tFeedbackLeveler_setFactor()

void tFeedbackLeveler_setFactor ( tFeedbackLeveler * const  ,
float  factor 
)
Parameters
levelerA pointer to the relevant tFeedbackLeveler.

◆ tFeedbackLeveler_setMode()

void tFeedbackLeveler_setMode ( tFeedbackLeveler * const  ,
int  mode 
)
Parameters
levelerA pointer to the relevant tFeedbackLeveler.
mode0 for upwards limiting only, 1 for biderctional limiting

◆ tFeedbackLeveler_setStrength()

void tFeedbackLeveler_setStrength ( tFeedbackLeveler * const  ,
float  strength 
)
Parameters
levelerA pointer to the relevant tFeedbackLeveler.