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

Biquad filter is hard clipping the audio #21

Open
hosembafer opened this issue Jun 15, 2022 · 0 comments
Open

Biquad filter is hard clipping the audio #21

hosembafer opened this issue Jun 15, 2022 · 0 comments

Comments

@hosembafer
Copy link

hosembafer commented Jun 15, 2022

I'm using sndfilter biquad filter as a chain of filters, i.e. combining lowshelf, peaking and highshelf filters.

In general, the equalizer should not over amplify the audio with the params I use.

I can see that you have ported Web Audio API biquad filter and the code is almost the same, but it results in completely different output.

eq-hard-clipping-diff

  1. Original
  2. GarageBand
  3. sndfilter

GarageBand is just an example, we will get almost the same result with other tools.

Could you please confirm whether this behavior is expected or maybe it's a known issue?

How to reproduce

Download drum-beat.wav

sndfilter drum-beat.wav filtered.wav lowshelf 250 1 20
sndfilter filtered.wav filtered.wav peaking 500 3 20

You can reproduce it only by using lowshelf or peaking, but it's more demonstrative when combining them too.

And also biquad filters affect only starting from around 1.3 seconds of the input audio. This is a separate issue BTW.

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

No branches or pull requests

1 participant