Looking for a bandpass filter design with bandwidth control.

For general discussion related FlowStone
Post Reply
zoobooboozoo
Posts: 32
Joined: Tue Sep 23, 2014 12:14 pm

Looking for a bandpass filter design with bandwidth control.

Post by zoobooboozoo »

Hi all.

I'm looking for a bandpass filter design with frequency & bandwidth controls/inputs.

Ruby/DSP are preferable. a general design or green will also do :)
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: Looking for a bandpass filter design with bandwidth cont

Post by martinvicanek »

Search for RBJ biquads.
zoobooboozoo
Posts: 32
Joined: Tue Sep 23, 2014 12:14 pm

Re: Looking for a bandpass filter design with bandwidth cont

Post by zoobooboozoo »

I found this:
http://flowstone.guru/downloads/rbj-biquad-filters/

But the bandpasses doesn't have a BW control. Am I missing something?
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: Looking for a bandpass filter design with bandwidth cont

Post by martinvicanek »

You're almost there!

Bandwidth = Center_Frequency/Q

Note:
Center_Frequency is sometimes labeled "Cutoff Frequency".
Q is sometimes labeled "Resonance".
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Looking for a bandpass filter design with bandwidth cont

Post by tulamide »

martinvicanek wrote:You're almost there!

Bandwidth = Center_Frequency/Q

Note:
Center_Frequency is sometimes labeled "Cutoff Frequency".
Q is sometimes labeled "Resonance".

Thank you for this info! While it may seem easy, I always wondered about it. That helps a lot to get in touch with the very abstract filter language/design/math, etc.
If there are more such tips, that make it easier to understand the relations of all the parameters, please share them :)
"There lies the dog buried" (German saying translated literally)
zoobooboozoo
Posts: 32
Joined: Tue Sep 23, 2014 12:14 pm

Re: Looking for a bandpass filter design with bandwidth cont

Post by zoobooboozoo »

Thx martin!

Now I have a different problem. I want to control the cutoff with numinal frequency in hz(like 270, 440 1850 etc...) but I can't seem to make the proper conversions so that the float frequency provides the RBJ Biquad with what it needs...
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Looking for a bandpass filter design with bandwidth cont

Post by KG_is_back »

There is a stock module called "hz to 0-1" or something like that. Basically you have to divide the frequency in Hz with half the samplerate.
zoobooboozoo
Posts: 32
Joined: Tue Sep 23, 2014 12:14 pm

Re: Looking for a bandpass filter design with bandwidth cont

Post by zoobooboozoo »

Yeah for some reason I cannot connect the "hz to 0-1" module to either directly the cutoff input or the "scale cutoff" module...
zoobooboozoo
Posts: 32
Joined: Tue Sep 23, 2014 12:14 pm

Re: Looking for a bandpass filter design with bandwidth cont

Post by zoobooboozoo »

Could anyone help?

I'm really trinyg different methods but can't get to where I input into a bandpass filter:
1)frequency somewhere between ~200-5000
2)Q/res based on the above frequency and bandwidth value of ~50-140

For some reason the values gets lost in translation with both the stock bandpass filter and the RBJ biquads...
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: Looking for a bandpass filter design with bandwidth cont

Post by martinvicanek »

Here you go. (That's a very narrow bandpass filter.)
Attachments
Bandpass.fsm
(121.28 KiB) Downloaded 999 times
Post Reply