mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-27 11:33:54 +01:00
see?
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user