Functions
tThreshold

Threshold with hysteresis (like Max/MSP thresh~ object) More...

Functions

void tThreshold_init (tThreshold *const, float low, float high, LEAF *const leaf)
 Initialize a tThreshold to the default mempool of a LEAF instance. More...
 
void tThreshold_initToPool (tThreshold *const, float low, float high, tMempool *const)
 Initialize a tThreshold to a specified mempool. More...
 
void tThreshold_free (tThreshold *const)
 Free a tThreshold from its mempool. More...
 
int tThreshold_tick (tThreshold *const, float input)
 
void tThreshold_setLow (tThreshold *const, float low)
 
void tThreshold_setHigh (tThreshold *const, float high)
 

Detailed Description

Threshold with hysteresis (like Max/MSP thresh~ object)

Function Documentation

◆ tThreshold_init()

void tThreshold_init ( tThreshold * const  ,
float  low,
float  high,
LEAF *const  leaf 
)

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

Parameters
thresholdA pointer to the tThreshold to initialize.
leafA pointer to the leaf instance.

◆ tThreshold_initToPool()

void tThreshold_initToPool ( tThreshold * const  ,
float  low,
float  high,
tMempool * const   
)

Initialize a tThreshold to a specified mempool.

Parameters
thresholdA pointer to the tThreshold to initialize.
mempoolA pointer to the tMempool to use.

◆ tThreshold_free()

void tThreshold_free ( tThreshold * const  )

Free a tThreshold from its mempool.

Parameters
thresholdA pointer to the tThreshold to free.

◆ tThreshold_tick()

int tThreshold_tick ( tThreshold * const  ,
float  input 
)
Parameters
thresholdA pointer to the relevant tThreshold.

◆ tThreshold_setLow()

void tThreshold_setLow ( tThreshold * const  ,
float  low 
)
Parameters
thresholdA pointer to the relevant tThreshold.

◆ tThreshold_setHigh()

void tThreshold_setHigh ( tThreshold * const  ,
float  high 
)
Parameters
thresholdA pointer to the relevant tThreshold.