-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bandpass filter frequency settings #13
Comments
At the end you can always convert it to f1 = f0 - 1/2 bw and f2 = f0 + 1/2 bw and then work out the new centre frequency. Internally the BP is generated by transforming a lowpass response into a BP response: |
Hello Bernd
Thanks very much for your quick response
For the ‘one octave' bandpass filter the frequencies will be f1 = f0/√2, and f2 = f0*√2
So on a logarithmic freq scale they are visually ‘symmetrical' around the centre frequency,
![image](https://user-images.githubusercontent.com/46006520/56951654-13c16b00-6b41-11e9-9054-35611e177009.png)
but on an actual linear scale they will be ‘off-centre’, non-symmetrical, with more on the f2 side
![image](https://user-images.githubusercontent.com/46006520/56951669-1de36980-6b41-11e9-8036-5c38aaf92e6c.png)
Do I understand you well that in the code somewhere, the f1 and f2 frequencies can be set independently as f1 = f0/√2, and f2 = f0*√2 (i.e: not symmetrical around f0) and then the bandwidth can be set as BW= fo/√2 ?
Thanks again
Kind regards
Michael
… On 30/04/2019, at 01:57, Bernd Porr ***@***.***> wrote:
At the end you can always convert it to f1 = f0 - 1/2 bw and f2 = f0 + 1/2 bw and then work out the new centre frequency. Internally the BP is generated by transforming a lowpass response into a BP response:
https://dsp.stackexchange.com/questions/22016/how-is-the-lowpass-to-bandpass-transformation-derived <https://dsp.stackexchange.com/questions/22016/how-is-the-lowpass-to-bandpass-transformation-derived>
The bandwidth is defined by the lowpass cutoff and the centre frequency by the shift variable f0. This also means that if you use a 4th order bandpass or a chain of two 2nd order high/lowpass filters won't make a difference.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#13 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AK7AB6HU64YA6TQ6UMHYBDTPS54OFANCNFSM4HJFJ3JQ>.
|
Check this out: It's basically shifting a lowpass in the frequency domain: |
Sorry that's too abstract for me! I just want to find out if i can specify the lower and upper frequencies, rather than centre freq +bandwidth approach - anyway thanks for your time |
Short answer: no. The whole internal calc works with center/bandwidth. It never has f1/f2 at any point so just use your formulas above to map from f1/f2 to f0/bw. |
Thank you |
It looks as if the Bandpass Filter sets upper and lower frequencies symmetrically (arithmetic mean) around the centre frequency, width defined by the widthFrequency - is that correct?
For an Octave Band Filter I need a Geometric Mean centre frequency - the upper frequency cut-off to be further away from the centre frequency than the lower frequency cut-off
Does the IIRS filter library allow for this type of bandpass filter? Thank you, Michael
The text was updated successfully, but these errors were encountered: