![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
BiQuadFilter & getting processed values out
BiQuadFilter & getting processed values out
I might be missing something utterly obvious here... but how do I get the processed values out of BiQuadFilter? I can see the constructors, and methods for getting and setting cutoff etc, plus ProcessSample, but nothing for getting the filtered sample out. Other filters have the getSomethingValue method, nothing like that here. Help? ![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
-
- Site Admin
- Posts: 256
- Joined: Fri Jul 27, 2018 5:36 pm
Re: BiQuadFilter & getting processed values out
Hi there,
ProcessSample() returns the filtered sample. So:
double outputSignal = biquad.ProcessFilter(inputSignal);
That's it!
Dan
ProcessSample() returns the filtered sample. So:
double outputSignal = biquad.ProcessFilter(inputSignal);
That's it!
Dan
Re: BiQuadFilter & getting processed values out
Ahh! In the Library pane, the tooltip for BiQuadFilter's ProcessSample method errorneously says that its type is void, and since the same method actually _is_ void in the other filter classes, I had no reason to doubt that.
But yes, seems that it does actually return the processed value. Thanks!
![Smile :)](./images/smilies/icon_e_smile.gif)
-
- Posts: 27
- Joined: Sat Oct 20, 2018 9:29 pm
Re: BiQuadFilter & getting processed values out
Thanks, Captain, we're fixing the tooltip.