Skip to content

IIR filter: potential for producing clicks and cracks #1415

@derselbst

Description

@derselbst

FluidSynth version

2.4.0 (recent master), 2.3.x is not affected, because it doesn't implement #1342

Describe the bug

Even though I have attempted to fix several clicks produced by the IIR filter on rapid fc changes in #1345 , there still seems to be a potential for clicks and cracks.

Expected behavior

Clean audio.

Steps to reproduce

  1. Checkout and compile recent master (or 2.4.0 when it's released)
  2. Grab the ZIP below
  3. fluidsynth -F render.wav -R 0 -C 0 "The Nervous Filter trimmed.mid" "GeneralUser GS v1.471.sf2"

The first 5 seconds of the MIDI are sufficient. The original untrimmed MIDI is provided as well. The click may be more audible when reverb is enabled.

Additional context

To my understanding, fluidsynth's implementation of the IIR filter is the result of an analog transformation of a 2nd order Butterworth filter into the z-domain. The exact cause of the clicks is currently unknown.

The Nervous Filter.zip

Screenshot_20241031_132723

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions