| 74 | } |
| 75 | |
| 76 | float process(float input, FilterMode mode) { |
| 77 | stage1.process(input); |
| 78 | float s1 = stage1.output(mode); |
| 79 | |
| 80 | stage2.process(s1); |
| 81 | float s2 = stage2.output(mode); |
| 82 | |
| 83 | return s2; |
| 84 | } |
| 85 | |
| 86 | private: |
| 87 | StateVariableFilter2ndOrder stage1, stage2; |