From 219b2a47e024c885be0345b68bda053212600f98 Mon Sep 17 00:00:00 2001 From: Kuba <132459354+KubaPro010@users.noreply.github.com> Date: Fri, 8 Aug 2025 23:14:23 +0200 Subject: [PATCH] see? --- filter/iir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter/iir.c b/filter/iir.c index 18d7c5c..dd9db5f 100644 --- a/filter/iir.c +++ b/filter/iir.c @@ -25,7 +25,7 @@ void tilt_init(TiltCorrectionFilter* f, float correction_strength, float sr) { f->lp = 0.0f; // simple low/high gains from tilt - float t = (tilt < -1.0f) ? -1.0f : (tilt > 1.0f ? 1.0f : tilt); + float t = (correction_strength < -1.0f) ? -1.0f : (correction_strength > 1.0f ? 1.0f : correction_strength); f->low_gain = 1.0f - t; f->high_gain = 1.0f + t; }