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

Smooth linear filter parameter change #1432

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft

Conversation

derselbst
Copy link
Member

This PR implements a smooth change of the IIR filter parameters fres (=filter cutoff frequency) and Q. It is meant as a proper replacement for the previous linear smoothing of the individual filter coefficients, see #1345.

This PR is supposed to fix the clicks and pops heard in those related issues:

Fixes #1415
Fixes #1417
Fixes #1424

PR Depends on:
#1429
#1430

Open TODOs:

  • Investigate if the maximum smoothing range of 8*FLUID_BUFSIZE can be shortened
  • Watch out for performance optimizations (e.g. writing and re-reading the filter coeffs should not go via global memory)
  • Publish rendered audio samples for comparison (native 2.4.0 release + 2.4.0 with Remove interpolation of IIR filter coefficients #1345 reverted + changes as of this PR)

fres is clearly given in absolute cents. it is later combined with fres_mod, which is given in relative cents
interpolation for Q still missing, updating the coeffs when Q changes still missing
@derselbst derselbst added the bug label Nov 16, 2024
@derselbst derselbst added this to the 2.4 milestone Nov 16, 2024
Copy link

sonarcloud bot commented Nov 16, 2024

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