Functions
tTwoPole

TwoPole filter, reimplemented from STK (Cook and Scavone). More...

Functions

void tTwoPole_init (tTwoPole *const, LEAF *const leaf)
 Initialize a tTwoPole to the default mempool of a LEAF instance. More...
 
void tTwoPole_initToPool (tTwoPole *const, tMempool *const)
 Initialize a tTwoPole to a specified mempool. More...
 
void tTwoPole_free (tTwoPole *const)
 Free a tTwoPole from its mempool. More...
 
float tTwoPole_tick (tTwoPole *const, float input)
 
void tTwoPole_setB0 (tTwoPole *const, float b0)
 
void tTwoPole_setA1 (tTwoPole *const, float a1)
 
void tTwoPole_setA2 (tTwoPole *const, float a2)
 
void tTwoPole_setResonance (tTwoPole *const, float freq, float radius, int normalize)
 
void tTwoPole_setCoefficients (tTwoPole *const, float b0, float a1, float a2)
 
void tTwoPole_setGain (tTwoPole *const, float gain)
 

Detailed Description

TwoPole filter, reimplemented from STK (Cook and Scavone).

Function Documentation

◆ tTwoPole_init()

void tTwoPole_init ( tTwoPole * const  ,
LEAF *const  leaf 
)

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

Parameters
filterA pointer to the tTwoPole to initialize.
leafA pointer to the leaf instance.

◆ tTwoPole_initToPool()

void tTwoPole_initToPool ( tTwoPole * const  ,
tMempool * const   
)

Initialize a tTwoPole to a specified mempool.

Parameters
filterA pointer to the tTwoPole to initialize.
mempoolA pointer to the tMempool to use.

◆ tTwoPole_free()

void tTwoPole_free ( tTwoPole * const  )

Free a tTwoPole from its mempool.

Parameters
filterA pointer to the tTwoPole to free.

◆ tTwoPole_tick()

float tTwoPole_tick ( tTwoPole * const  ,
float  input 
)
Parameters
filterA pointer to the relevant tTwoPole.

◆ tTwoPole_setB0()

void tTwoPole_setB0 ( tTwoPole * const  ,
float  b0 
)
Parameters
filterA pointer to the relevant tTwoPole.

◆ tTwoPole_setA1()

void tTwoPole_setA1 ( tTwoPole * const  ,
float  a1 
)
Parameters
filterA pointer to the relevant tTwoPole.

◆ tTwoPole_setA2()

void tTwoPole_setA2 ( tTwoPole * const  ,
float  a2 
)
Parameters
filterA pointer to the relevant tTwoPole.

◆ tTwoPole_setResonance()

void tTwoPole_setResonance ( tTwoPole * const  ,
float  freq,
float  radius,
int  normalize 
)
Parameters
filterA pointer to the relevant tTwoPole.

◆ tTwoPole_setCoefficients()

void tTwoPole_setCoefficients ( tTwoPole * const  ,
float  b0,
float  a1,
float  a2 
)
Parameters
filterA pointer to the relevant tTwoPole.

◆ tTwoPole_setGain()

void tTwoPole_setGain ( tTwoPole * const  ,
float  gain 
)
Parameters
filterA pointer to the relevant tTwoPole.