BiQuadFilter & getting processed values out

Post Reply
User avatar
Captain
Posts: 103
Joined: Sat Aug 25, 2018 11:12 am

BiQuadFilter & getting processed values out

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

Re: BiQuadFilter & getting processed values out

Post by Cherry Dan »

Hi there,

ProcessSample() returns the filtered sample. So:

double outputSignal = biquad.ProcessFilter(inputSignal);

That's it!

Dan
User avatar
Captain
Posts: 103
Joined: Sat Aug 25, 2018 11:12 am

Re: BiQuadFilter & getting processed values out

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

Re: BiQuadFilter & getting processed values out

Post by CherryRuss »

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

Return to “Module Designer”