mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-07-31 08:49:17 +02:00
see?
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ void tilt_init(TiltCorrectionFilter* f, float correction_strength, float sr) {
|
|||||||
f->lp = 0.0f;
|
f->lp = 0.0f;
|
||||||
|
|
||||||
// simple low/high gains from tilt
|
// 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->low_gain = 1.0f - t;
|
||||||
f->high_gain = 1.0f + t;
|
f->high_gain = 1.0f + t;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user