Skip to content

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