Skip to content

voice with high filter Q killed too early, causing audible click #1427

@mrbumpy409

Description

@mrbumpy409

FluidSynth version

Affects 2.3 (and presumably older) and 2.4 versions of FluidSynth including current master and iir-tests branches.

Describe the bug

By default FluidSynth cuts off a voice after the volume envelope release has reached -96 dB (as I recall... I'm going off of memory here). Normally the volume envelope being at -96 dB would be an inaudible cutoff, but when high filter Q is used, the filter hasn't stopped "ringing" at this point, and so the still audible sound is abruptly cut off, resulting in a click.

Steps to reproduce

  1. Download and extract the following zip file:
    high_Q_note_cutoff_test.zip
  2. Load the .sf2 file into FluidSynth and play the .mid file. I have also included an audio file fluidsynth_iir-tests.flac showing the result of this test using FluidSynth's current iir-tests branch.

Current behavior

The voice cuts off while the filter is still resonating, causing an audible click. You can see this quite clearly by viewing the waveform in Audacity:
image

Expected behavior

The voice shouldn't be cut off until the filter output has also reached -96 dB.

Additional context

Related to bug #1415.

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