6 float mA, mB, mC, mP1, mP2;
9 /* Convert formant freqencies and bandwidth into resonator difference equation coefficents
12 int aFrequency, /* Frequency of resonator in Hz */
13 int aBandwidth, /* Bandwidth of resonator in Hz */
16 /* Convert formant freqencies and bandwidth into anti-resonator difference equation constants
18 void initAntiresonator(
19 int aFrequency, /* Frequency of resonator in Hz */
20 int aBandwidth, /* Bandwidth of resonator in Hz */
24 void setGain(float aG);
26 /* Generic resonator function */
27 float resonate(float input);
29 /* Generic anti-resonator function
30 Same as resonator except that a,b,c need to be set with initAntiresonator()
31 and we save inputs in p1/p2 rather than outputs.
32 There is currently only one of these - "mNasalZero"
34 Output = (mNasalZero.a * input) + (mNasalZero.b * oldin1) + (mNasalZero.c * oldin2)
37 float antiresonate(float input);