Page 1 of 1

BiQuadFilter & getting processed values out

Posted: Mon Dec 17, 2018 7:54 pm
by Captain
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? :D

Re: BiQuadFilter & getting processed values out

Posted: Mon Dec 17, 2018 9:33 pm
by Cherry Dan
Hi there,

ProcessSample() returns the filtered sample. So:

double outputSignal = biquad.ProcessFilter(inputSignal);

That's it!

Dan

Re: BiQuadFilter & getting processed values out

Posted: Tue Dec 18, 2018 7:53 am
by Captain
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!

Re: BiQuadFilter & getting processed values out

Posted: Tue Dec 18, 2018 7:16 pm
by CherryRuss
Thanks, Captain, we're fixing the tooltip.