From 9acddeb29c5f41a11e4ae406b4420aa3659c5cf4 Mon Sep 17 00:00:00 2001 From: Liam Kerr Date: Mon, 3 Aug 2026 15:45:34 +0100 Subject: [PATCH] bugfix: make soft clipping default because it's the first in the enum --- core/Clipper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Clipper.cpp b/core/Clipper.cpp index 9179415..4796274 100644 --- a/core/Clipper.cpp +++ b/core/Clipper.cpp @@ -19,10 +19,10 @@ void Clipper::processStereo(const float *inLeft, const float *inRight, float Clipper::clip(const float in) { switch (mode_) { - default: case kClipperModeHard: { return std::fmin(std::fmax(in, -threshold_), threshold_); } + default: case kClipperModeSoft: { float normalized = (in / threshold_) * 0.75f; return std::tanh(normalized) * threshold_;