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

Fix bugs with ladder filter feedback and highpass modes #203

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

ndonald2
Copy link
Contributor

Description

Fixes minor bugs in the new ladder filter added in #200:

  • Filter modes using first "ladder" stage in weighted mix were incorrect due to pre-sofclipped signal being used in mix sum, resulting in HPF modes having incorrect output
  • Passband gain adjust term in feedback math was using non-interpolated input signal

I messed up that part of the code in my original PR, I adapted it from before I made this fix and didn't catch it until just now.

Testing

Tested using same example code in #200 with all filter type options to verify expected sound and response. Before and after difference is stark - the filter was just not working correctly before in the HPF modes.

Demos / Example Code

See code from #200

Proper PBG compensation depends on using scaled drive
@stephenhensley stephenhensley merged commit 8a24493 into electro-smith:master Sep 20, 2024
2 checks passed
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.

2 participants