Functions
tSampleReducer

Sample rate reducer. More...

Functions

void tSampleReducer_init (tSampleReducer *const, LEAF *const leaf)
 Initialize a tSampleReducer to the default mempool of a LEAF instance. More...
 
void tSampleReducer_initToPool (tSampleReducer *const, tMempool *const)
 Initialize a tSampleReducer to a specified mempool. More...
 
void tSampleReducer_free (tSampleReducer *const)
 Free a tSampleReducer from its mempool. More...
 
float tSampleReducer_tick (tSampleReducer *const, float input)
 
void tSampleReducer_setRatio (tSampleReducer *const, float ratio)
 

Detailed Description

Sample rate reducer.

Function Documentation

◆ tSampleReducer_init()

void tSampleReducer_init ( tSampleReducer * const  ,
LEAF *const  leaf 
)

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

Parameters
reducerA pointer to the tSampleReducer to initialize.
leafA pointer to the leaf instance.

◆ tSampleReducer_initToPool()

void tSampleReducer_initToPool ( tSampleReducer * const  ,
tMempool * const   
)

Initialize a tSampleReducer to a specified mempool.

Parameters
reducerA pointer to the tSampleReducer to initialize.
mempoolA pointer to the tMempool to use.

◆ tSampleReducer_free()

void tSampleReducer_free ( tSampleReducer * const  )

Free a tSampleReducer from its mempool.

Parameters
reducerA pointer to the tSampleReducer to free.

◆ tSampleReducer_tick()

float tSampleReducer_tick ( tSampleReducer * const  ,
float  input 
)
Parameters
reducerA pointer to the relevant tSampleReducer.

◆ tSampleReducer_setRatio()

void tSampleReducer_setRatio ( tSampleReducer * const  ,
float  ratio 
)
Parameters
reducerA pointer to the relevant tSampleReducer.