From dced0383d5a246857c5f4a72d1532d9ad2dbeb26 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Tue, 8 Jul 2025 22:59:17 +0200 Subject: [PATCH] shit --- src/fm95.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fm95.c b/src/fm95.c index 4a6ad45..9685b76 100644 --- a/src/fm95.c +++ b/src/fm95.c @@ -232,7 +232,7 @@ int run_fm95(const FM95_Config config, FM95_Runtime* runtime) { } } - mpx = bs412_compress(&bs412, mpx*config.mpx_deviation); + mpx = bs412_compress(&bs412, mpx*config.mpx_deviation) / config.mpx_deviation; output[i] = hard_clip(tilt(&tilter, (mpx_in[i]+mpx))*config.master_volume, 1.0); // Ensure peak deviation of 75 khz, assuming we're calibrated correctly (lower) advance_oscillator(&osc);