Functions
tAutoSampler

Automatic sampler based on power of input. More...

Functions

void tAutoSampler_init (tAutoSampler *const, tBuffer *const, LEAF *const leaf)
 Initialize a tAutoSampler to the default mempool of a LEAF instance. More...
 
void tAutoSampler_free (tAutoSampler *const)
 Free a tAutoSampler from its mempool. More...
 
float tAutoSampler_tick (tAutoSampler *const, float input)
 
void tAutoSampler_setBuffer (tAutoSampler *const, tBuffer *const)
 
void tAutoSampler_setMode (tAutoSampler *const, PlayMode mode)
 
void tAutoSampler_play (tAutoSampler *const)
 
void tAutoSampler_stop (tAutoSampler *const)
 
void tAutoSampler_setThreshold (tAutoSampler *const, float thresh)
 
void tAutoSampler_setWindowSize (tAutoSampler *const, uint32_t size)
 
void tAutoSampler_setCrossfadeLength (tAutoSampler *const, uint32_t length)
 
void tAutoSampler_setRate (tAutoSampler *const, float rate)
 

Detailed Description

Automatic sampler based on power of input.

Function Documentation

◆ tAutoSampler_init()

void tAutoSampler_init ( tAutoSampler * const  ,
tBuffer * const  ,
LEAF *const  leaf 
)

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

Parameters
samplerA pointer to the tAutoSampler to initialize.
leafA pointer to the leaf instance.

◆ tAutoSampler_free()

void tAutoSampler_free ( tAutoSampler * const  )

Free a tAutoSampler from its mempool.

Parameters
samplerA pointer to the tAutoSampler to free.

◆ tAutoSampler_tick()

float tAutoSampler_tick ( tAutoSampler * const  ,
float  input 
)
Parameters
samplerA pointer to the relevant tAutoSampler.

◆ tAutoSampler_setBuffer()

void tAutoSampler_setBuffer ( tAutoSampler * const  ,
tBuffer * const   
)
Parameters
samplerA pointer to the relevant tAutoSampler.

◆ tAutoSampler_setMode()

void tAutoSampler_setMode ( tAutoSampler * const  ,
PlayMode  mode 
)
Parameters
samplerA pointer to the relevant tAutoSampler.

◆ tAutoSampler_play()

void tAutoSampler_play ( tAutoSampler * const  )
Parameters
samplerA pointer to the relevant tAutoSampler.

◆ tAutoSampler_stop()

void tAutoSampler_stop ( tAutoSampler * const  )
Parameters
samplerA pointer to the relevant tAutoSampler.

◆ tAutoSampler_setThreshold()

void tAutoSampler_setThreshold ( tAutoSampler * const  ,
float  thresh 
)
Parameters
samplerA pointer to the relevant tAutoSampler.

◆ tAutoSampler_setWindowSize()

void tAutoSampler_setWindowSize ( tAutoSampler * const  ,
uint32_t  size 
)
Parameters
samplerA pointer to the relevant tAutoSampler.

◆ tAutoSampler_setCrossfadeLength()

void tAutoSampler_setCrossfadeLength ( tAutoSampler * const  ,
uint32_t  length 
)
Parameters
samplerA pointer to the relevant tAutoSampler.

◆ tAutoSampler_setRate()

void tAutoSampler_setRate ( tAutoSampler * const  ,
float  rate 
)
Parameters
samplerA pointer to the relevant tAutoSampler.