Page 1 of 1

Filter Curve Display

PostPosted: Fri Jan 16, 2015 12:01 pm
by glitchcpt
Hey guys its me again :mrgreen:

I have another query, i think its still noob haha

anyway, I am trying to create a filter display curve, I managed to get this far, but it is acting rather like a peaking filter than a LPF in the display window.

Basically i need to make the float array append only the values below the "freq" input to -1, i think that should fix it, however I'm struggling with that,

Thanks in advance :D

Re: Filter Curve Display

PostPosted: Fri Jan 16, 2015 6:52 pm
by glitchcpt
UPDATE:

I managed to get the Band Pass, Band Reject and Peaking modes to display correctly :D
Still struggling with the Low Pass and High Pass

Re: Filter Curve Display

PostPosted: Fri Jan 16, 2015 10:39 pm
by KG_is_back
I think your main problem is, that you're doing it all wrong. Inside there is a "biquad frequency response" primitive, that builds the graph. You input the biquad coefficients and it builds the array for graph in given range.

Just before the prim you have a module called "Peaking EQ Biquad Coeffs" that calculates the biquad coefficients of a peaking filter from frequency, rez and gain. In order to make the graph to show also other filter types than peaking, you need to make more of these modules - for each filter type one and select between them.

This may prove complicated, since you want to show response of a 3x oversampled state-variable filter (which is somewhat equivalent to oversampled biquads LPF BPF HPF combination).

What I recommend is to use copy of the filter, connect it to impulse and Analyser prims. And use FFTgraph prim to extract the frequency response.

Re: Filter Curve Display

PostPosted: Sat Jan 17, 2015 6:22 am
by glitchcpt
Thanks KG, I guess its all a learning experience right? :lol:

I will try that idea, thanks man

Re: Filter Curve Display

PostPosted: Sat Jan 17, 2015 6:59 am
by glitchcpt
Editted

So far so good, thanks KG :)

I just need to touch up the graphic elements a bit, but its kind of exactly what i was looking for :twisted: