Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Looking for a bandpass filter design with bandwidth control.

For general discussion related FlowStone

Looking for a bandpass filter design with bandwidth control.

Postby zoobooboozoo » Wed Oct 08, 2014 9:29 pm

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 :)
zoobooboozoo
 
Posts: 32
Joined: Tue Sep 23, 2014 12:14 pm

Re: Looking for a bandpass filter design with bandwidth cont

Postby martinvicanek » Thu Oct 09, 2014 7:42 am

Search for RBJ biquads.
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm

Re: Looking for a bandpass filter design with bandwidth cont

Postby zoobooboozoo » Thu Oct 09, 2014 9:57 am

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

But the bandpasses doesn't have a BW control. Am I missing something?
zoobooboozoo
 
Posts: 32
Joined: Tue Sep 23, 2014 12:14 pm

Re: Looking for a bandpass filter design with bandwidth cont

Postby martinvicanek » Thu Oct 09, 2014 10:06 pm

You're almost there!

Bandwidth = Center_Frequency/Q

Note:
Center_Frequency is sometimes labeled "Cutoff Frequency".
Q is sometimes labeled "Resonance".
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm

Re: Looking for a bandpass filter design with bandwidth cont

Postby tulamide » Thu Oct 09, 2014 10:28 pm

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)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Looking for a bandpass filter design with bandwidth cont

Postby zoobooboozoo » Sat Oct 11, 2014 12:53 pm

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...
zoobooboozoo
 
Posts: 32
Joined: Tue Sep 23, 2014 12:14 pm

Re: Looking for a bandpass filter design with bandwidth cont

Postby KG_is_back » Sat Oct 11, 2014 1:40 pm

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.
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

Postby zoobooboozoo » Sat Oct 11, 2014 2:43 pm

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

Postby zoobooboozoo » Mon Oct 13, 2014 9:44 pm

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...
zoobooboozoo
 
Posts: 32
Joined: Tue Sep 23, 2014 12:14 pm

Re: Looking for a bandpass filter design with bandwidth cont

Postby martinvicanek » Tue Oct 14, 2014 1:38 am

Here you go. (That's a very narrow bandpass filter.)
Attachments
Bandpass.fsm
(121.28 KiB) Downloaded 808 times
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm


Return to General

Who is online

Users browsing this forum: No registered users and 66 guests