dimtass/DSP-Cpp-filters

Difference between the Boost and cut parametric filters

johnroper100 opened this issue · 3 comments

What is the difference between the two? I want to give the option to boost or cut a certain frequency, but usually, this is done using a multiplier with 0 being the middle. However, it seems that you have separate filters for boost and cut. Should I be selecting which one based on what the multiplier value is (> 0 or <0) or do I only need one that I can enter both a positive and negative multiplier in?

Hi @johnroper100 , I'm not sure if I understand the question. Given that those filters are based on the biquad filter design, the two filters have different coefficients.

If you like to create a filter that combines both, then you can create a new class (and/or use multiple-inheritance) and then create a new filter that combines the two filters in series and select the corner frequency for each stage. This for example would need to pass two corner frequencies in the class.

If you want a single class/object that you control the boost/cut using only one parameter, then you can again create a new class and then depend your object's parameter proxy the audio data though the biquad implementation you want.

I would think of those basic biquad filters as building blocks to create your own custom filters.

Hi @johnroper100 , I think the way you do it is just fine. You've created your own filter by using building blocks.