From 3def94aeda0c5bad64c55f9c5d5983a4f98480d7 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Wed, 31 Dec 2025 11:09:47 +0100 Subject: [PATCH] move clipper thing --- src/fm95.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fm95.c b/src/fm95.c index e7a497b..d8b07ed 100644 --- a/src/fm95.c +++ b/src/fm95.c @@ -248,7 +248,7 @@ int run_fm95(const FM95_Config config, FM95_Runtime* runtime) { mpx = bs412_compress(&runtime->bs412, mpx+mpx_in[i]); - output[i] = hard_clip(mpx*config.master_volume, 1.0); // Ensure peak deviation of 75 khz (or the set deviation), assuming we're calibrated correctly + output[i] = hard_clip(mpx, 1.0)*config.master_volume; // Ensure peak deviation of 75 khz (or the set deviation), assuming we're calibrated correctly advance_oscillator(&runtime->osc); output_hq[2*i+0] = hard_clip(l, 1.0f);