From eed9354d3695aca71badc72614e19da5a219c212 Mon Sep 17 00:00:00 2001 From: Sandelinos Date: Sat, 2 Sep 2023 22:05:53 +0300 Subject: [PATCH] Fix values outside of graph not being clipped --- src/WolfShaperPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WolfShaperPlugin.cpp b/src/WolfShaperPlugin.cpp index 5736686..f5591e8 100644 --- a/src/WolfShaperPlugin.cpp +++ b/src/WolfShaperPlugin.cpp @@ -330,7 +330,7 @@ class WolfShaper : public Plugin if (absInput > 1.0f) { - return calculateValueOutsideGraph(input); + return calculateValueOutsideGraph(input < 0 ? -1.0f : 1.0f); } const bool bipolarMode = lineEditor.getBipolarMode();