| 51 | /* Output = (mNasalZero.a * input) + (mNasalZero.b * oldin1) + (mNasalZero.c * oldin2) */ |
| 52 | |
| 53 | float resonator::antiresonate(float input) |
| 54 | { |
| 55 | float x = mA * input + mB * mP1 + mC * mP2; |
| 56 | mP2 = mP1; |
| 57 | mP1 = input; |
| 58 | return x; |
| 59 | } |
| 60 | |
| 61 | resonator::resonator() |
| 62 | { |