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_;