Functions
tDelay

Non-interpolating delay, reimplemented from STK (Cook and Scavone). More...

Functions

void tDelay_init (tDelay *const, uint32_t delay, uint32_t maxDelay, LEAF *const leaf)
 Initialize a tDelay to the default mempool of a LEAF instance. More...
 
void tDelay_initToPool (tDelay *const, uint32_t delay, uint32_t maxDelay, tMempool *const)
 Initialize a tDelay to a specified mempool. More...
 
void tDelay_free (tDelay *const)
 Free a tDelay from its mempool. More...
 
void tDelay_clear (tDelay *const)
 
void tDelay_setDelay (tDelay *const, uint32_t delay)
 
uint32_t tDelay_getDelay (tDelay *const)
 
void tDelay_tapIn (tDelay *const, float in, uint32_t tapDelay)
 
float tDelay_tapOut (tDelay *const, uint32_t tapDelay)
 
float tDelay_addTo (tDelay *const, float value, uint32_t tapDelay)
 
float tDelay_tick (tDelay *const, float sample)
 
float tDelay_getLastOut (tDelay *const)
 
float tDelay_getLastIn (tDelay *const)
 

Detailed Description

Non-interpolating delay, reimplemented from STK (Cook and Scavone).

Function Documentation

◆ tDelay_init()

void tDelay_init ( tDelay * const  ,
uint32_t  delay,
uint32_t  maxDelay,
LEAF *const  leaf 
)

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

Parameters
delayA pointer to the tDelay to initialize.
initalLength
maxLength
leafA pointer to the leaf instance.

◆ tDelay_initToPool()

void tDelay_initToPool ( tDelay * const  ,
uint32_t  delay,
uint32_t  maxDelay,
tMempool * const   
)

Initialize a tDelay to a specified mempool.

Parameters
delayA pointer to the tDelay to initialize.
initalLength
maxLength
mempoolA pointer to the tMempool to use.

◆ tDelay_free()

void tDelay_free ( tDelay * const  )

Free a tDelay from its mempool.

Parameters
delayA pointer to the tDelay to free.

◆ tDelay_clear()

void tDelay_clear ( tDelay * const  )
Parameters
delayA pointer to the relevant tDelay.

◆ tDelay_setDelay()

void tDelay_setDelay ( tDelay * const  ,
uint32_t  delay 
)
Parameters
delayA pointer to the relevant tDelay.
delayLengthThe new delay length in samples. Cannot be greater than the max delay length given on initialization.

◆ tDelay_getDelay()

uint32_t tDelay_getDelay ( tDelay * const  )
Parameters
delayA pointer to the relevant tDelay.
Returns
The current delay length.

◆ tDelay_tapIn()

void tDelay_tapIn ( tDelay * const  ,
float  in,
uint32_t  tapDelay 
)
Parameters
delayA pointer to the relevant tDelay.
input
position

◆ tDelay_tapOut()

float tDelay_tapOut ( tDelay * const  ,
uint32_t  tapDelay 
)
Parameters
delayA pointer to the relevant tDelay.
position
Returns

◆ tDelay_addTo()

float tDelay_addTo ( tDelay * const  ,
float  value,
uint32_t  tapDelay 
)
Parameters
delayA pointer to the relevant tDelay.
input
position
Returns

◆ tDelay_tick()

float tDelay_tick ( tDelay * const  ,
float  sample 
)
Parameters
delayA pointer to the relevant tDelay.
input
Returns

◆ tDelay_getLastOut()

float tDelay_getLastOut ( tDelay * const  )
Parameters
delayA pointer to the relevant tDelay.
Returns

◆ tDelay_getLastIn()

float tDelay_getLastIn ( tDelay * const  )
Parameters
delayA pointer to the relevant tDelay.
Returns