BiQuadFilter & getting processed values out

Post Reply
Posts: 37
Joined: Sat Aug 25, 2018 11:12 am

Mon Dec 17, 2018 7:54 pm

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
Cherry Dan
Site Admin
Posts: 114
Joined: Fri Jul 27, 2018 5:36 pm

Mon Dec 17, 2018 9:33 pm

Hi there,

ProcessSample() returns the filtered sample. So:

double outputSignal = biquad.ProcessFilter(inputSignal);

That's it!

Posts: 37
Joined: Sat Aug 25, 2018 11:12 am

Tue Dec 18, 2018 7:53 am

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!
Posts: 22
Joined: Sat Oct 20, 2018 9:29 pm

Tue Dec 18, 2018 7:16 pm

Thanks, Captain, we're fixing the tooltip.
Post Reply