Functions

Wave digital filter component. More...

Functions

void tWDF_init (tWDF *const, WDFComponentType type, float value, tWDF *const rL, tWDF *const rR, LEAF *const leaf)
 Initialize a tWDF to the default mempool of a LEAF instance. More...
 
void tWDF_initToPool (tWDF *const, WDFComponentType type, float value, tWDF *const rL, tWDF *const rR, tMempool *const)
 Initialize a tWDF to a specified mempool. More...
 
void tWDF_free (tWDF *const)
 Free a tWDF from its mempool. More...
 
float tWDF_tick (tWDF *const, float sample, tWDF *const outputPoint, uint8_t paramsChanged)
 
void tWDF_setValue (tWDF *const, float value)
 
void tWDF_setSampleRate (tWDF *const, float sample_rate)
 
uint8_t tWDF_isLeaf (tWDF *const)
 
float tWDF_getPortResistance (tWDF *const)
 
float tWDF_getReflectedWaveUp (tWDF *const, float input)
 
float tWDF_getReflectedWaveDown (tWDF *const, float input, float incident_wave)
 
void tWDF_setIncidentWave (tWDF *const, float incident_wave, float input)
 
float tWDF_getVoltage (tWDF *const)
 
float tWDF_getCurrent (tWDF *const)
 

Detailed Description

Wave digital filter component.

Function Documentation

◆ tWDF_init()

void tWDF_init ( tWDF * const  ,
WDFComponentType  type,
float  value,
tWDF *const  rL,
tWDF *const  rR,
LEAF *const  leaf 
)

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

Parameters
wdfA pointer to the tWDF to initialize.
leafA pointer to the leaf instance.

◆ tWDF_initToPool()

void tWDF_initToPool ( tWDF * const  ,
WDFComponentType  type,
float  value,
tWDF *const  rL,
tWDF *const  rR,
tMempool * const   
)

Initialize a tWDF to a specified mempool.

Parameters
wdfA pointer to the tWDF to initialize.
mempoolA pointer to the tMempool to use.

◆ tWDF_free()

void tWDF_free ( tWDF * const  )

Free a tWDF from its mempool.

Parameters
wdfA pointer to the tWDF to free.

◆ tWDF_tick()

float tWDF_tick ( tWDF * const  ,
float  sample,
tWDF *const  outputPoint,
uint8_t  paramsChanged 
)
Parameters
wdfA pointer to the relevant tWDF.

◆ tWDF_setValue()

void tWDF_setValue ( tWDF * const  ,
float  value 
)
Parameters
wdfA pointer to the relevant tWDF.

◆ tWDF_setSampleRate()

void tWDF_setSampleRate ( tWDF * const  ,
float  sample_rate 
)
Parameters
wdfA pointer to the relevant tWDF.

◆ tWDF_isLeaf()

uint8_t tWDF_isLeaf ( tWDF * const  )
Parameters
wdfA pointer to the relevant tWDF.

◆ tWDF_getPortResistance()

float tWDF_getPortResistance ( tWDF * const  )
Parameters
wdfA pointer to the relevant tWDF.

◆ tWDF_getReflectedWaveUp()

float tWDF_getReflectedWaveUp ( tWDF * const  ,
float  input 
)
Parameters
wdfA pointer to the relevant tWDF.

◆ tWDF_getReflectedWaveDown()

float tWDF_getReflectedWaveDown ( tWDF * const  ,
float  input,
float  incident_wave 
)
Parameters
wdfA pointer to the relevant tWDF.

◆ tWDF_setIncidentWave()

void tWDF_setIncidentWave ( tWDF * const  ,
float  incident_wave,
float  input 
)
Parameters
wdfA pointer to the relevant tWDF.

◆ tWDF_getVoltage()

float tWDF_getVoltage ( tWDF * const  )
Parameters
wdfA pointer to the relevant tWDF.

◆ tWDF_getCurrent()

float tWDF_getCurrent ( tWDF * const  )
Parameters
wdfA pointer to the relevant tWDF.