Functions

Karplus-Strong model. More...

Functions

void tPluck_init (tPluck *const, float lowestFrequency, LEAF *const leaf)
 Initialize a tPluck to the default mempool of a LEAF instance. More...
 
void tPluck_initToPool (tPluck *const, float lowestFrequency, tMempool *const)
 Initialize a tPluck to a specified mempool. More...
 
void tPluck_free (tPluck *const)
 Free a tPluck from its mempool. More...
 
float tPluck_tick (tPluck *const)
 
void tPluck_pluck (tPluck *const, float amplitude)
 Pluck the string. More...
 
void tPluck_noteOn (tPluck *const, float frequency, float amplitude)
 Start a note with the given frequency and amplitude. More...
 
void tPluck_noteOff (tPluck *const, float amplitude)
 Stop a note with the given amplitude (speed of decay) More...
 
void tPluck_setFrequency (tPluck *const, float frequency)
 Set instrument parameters for a particular frequency. More...
 
void tPluck_controlChange (tPluck *const, int number, float value)
 Perform the control change specified by number and value (0.0 - 128.0). More...
 
float tPluck_getLastOut (tPluck *const)
 

Detailed Description

Karplus-Strong model.

Function Documentation

◆ tPluck_init()

void tPluck_init ( tPluck * const  ,
float  lowestFrequency,
LEAF *const  leaf 
)

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

Parameters
stringA pointer to the tPluck to initialize.
leafA pointer to the leaf instance.

◆ tPluck_initToPool()

void tPluck_initToPool ( tPluck * const  ,
float  lowestFrequency,
tMempool * const   
)

Initialize a tPluck to a specified mempool.

Parameters
stringA pointer to the tPluck to initialize.
mempoolA pointer to the tMempool to use.

◆ tPluck_free()

void tPluck_free ( tPluck * const  )

Free a tPluck from its mempool.

Parameters
stringA pointer to the tPluck to free.

◆ tPluck_tick()

float tPluck_tick ( tPluck * const  )
Parameters
stringA pointer to the relevant tPluck.

◆ tPluck_pluck()

void tPluck_pluck ( tPluck * const  ,
float  amplitude 
)

Pluck the string.

Parameters
stringA pointer to the relevant tPluck.

◆ tPluck_noteOn()

void tPluck_noteOn ( tPluck * const  ,
float  frequency,
float  amplitude 
)

Start a note with the given frequency and amplitude.

Parameters
stringA pointer to the relevant tPluck.

◆ tPluck_noteOff()

void tPluck_noteOff ( tPluck * const  ,
float  amplitude 
)

Stop a note with the given amplitude (speed of decay)

Parameters
stringA pointer to the relevant tPluck.

◆ tPluck_setFrequency()

void tPluck_setFrequency ( tPluck * const  ,
float  frequency 
)

Set instrument parameters for a particular frequency.

Parameters
stringA pointer to the relevant tPluck.

◆ tPluck_controlChange()

void tPluck_controlChange ( tPluck * const  ,
int  number,
float  value 
)

Perform the control change specified by number and value (0.0 - 128.0).

Parameters
stringA pointer to the relevant tPluck.

◆ tPluck_getLastOut()

float tPluck_getLastOut ( tPluck * const  )
Parameters
stringA pointer to the relevant tPluck.