Skip to content
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

IIR Filters – peaking & formant #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jakubfiala
Copy link
Contributor

I've recently needed to use resonant bandpass filters in an oF app, but it seems that the bandpass filter doesn't quite work (at least it didn't in my instance). Here are two IIR filters I've implemented subsequently based on this cookbook by Robert Bristow-Johnson.

  • peaking – emphasizes a certain frequency band
  • formant – basically a resonant bandpass, differs from the former in that it suppresses all other frequencies

Both take cutoff frequency, Q and gain as arguments: Q and gain both range from 0.0-1.0, both are doubles.

I'm planning to implement a formant filterbank class not unlike the fffb~ object in Max/MSP as well – hopefully very soon.

jakub

Note: sorry about the million identical substitutions in the diff, git is being crazy and I have no idea why. The only real changes are in the maxiFilter sections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant