JUCE icon indicating copy to clipboard operation
JUCE copied to clipboard

[Bug]: dsp::Limiter distorts if threshold >> 0.0 dBFS

Open emezeske opened this issue 1 year ago • 0 comments

Detailed steps on how to reproduce the bug

  1. Add a dsp::Limiter to a project that makes sound, and set its threshold to something like 100 dBFS, and set the release to something short like 4ms.
  2. Make sound
  3. Hear distortion

What is the expected behaviour?

I would expect that if the threshold is set to something really high like 100 dBFS, the limiter would just do nothing -- it would pass the audio through with no changes. But somehow it seems that the audio is getting massively amplified before the hard 0 dBFS clipper, causing significant distortion.

Operating systems

Windows

What versions of the operating systems?

Windows 11

Architectures

x86_64

Stacktrace

No response

Plug-in formats (if applicable)

No response

Plug-in host applications (DAWs) (if applicable)

No response

Testing on the develop branch

The bug is present on the develop branch

Code of Conduct

  • [X] I agree to follow the Code of Conduct

emezeske avatar Jan 01 '24 17:01 emezeske