I'm using the Web Audio API to make a graphic EQ with four BiQuad filters; a highpass, two bandpass and a low pass:

enter image description here

You can see each node representing each filter's frequency. It's working nicely but I'd like to draw the shape of the filter's roll-off you'd usually find in other graphic EQ's.

I have the Q-factor of each filter and the central frequency. What I would like to do is get a formula that allows me to get the frequency of the roll-off at a specific db value. For example what is the frequency of the roll-off at -200db?

It's been a while since I've done any heavy mathematical stuff and so any help would be greatly appreciated.

  • $\begingroup$ The Q factor and center frequency won't be enough to plot the full frequency response of a filter. You'll need to know its topology (e.g. Butterworth, Chebyshev, others) and order. $\endgroup$ – Jason R Feb 23 '13 at 16:59
  • $\begingroup$ These are BiQuad filters. Do I need to be more specific than that? $\endgroup$ – RobotEyes Feb 23 '13 at 17:05
  • $\begingroup$ Yes. You can calculate the frequency response from the coefficients directly, or if you're using a well-known topology, there may be cookbook equations that you can use instead. $\endgroup$ – Jason R Feb 23 '13 at 21:36
  • $\begingroup$ ok thanks. So I don't currently have enough information on these filters to do a calculation - correct? The filter's code is hidden behind an API so I'm not sure if I can get more info on them but I'll take a look about... $\endgroup$ – RobotEyes Feb 24 '13 at 0:56
  • $\begingroup$ I think I found the appropriate cookbook here $\endgroup$ – RobotEyes Feb 24 '13 at 1:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.