0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-27 11:33:54 +01:00
This commit is contained in:
Kuba
2025-08-08 23:14:23 +02:00
committed by GitHub
parent 180f1fcb51
commit 219b2a47e0

View File

@@ -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;
}