0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 19:23:51 +01:00

change bs412 clipper value

This commit is contained in:
2025-07-09 08:37:59 +02:00
parent f06f9056fa
commit 6b0dd96de5

View File

@@ -59,7 +59,7 @@ float bs412_compress(BS412Compressor* mpx, float sample) {
mpx->gain = fmaxf(0.0f, mpx->gain);
float output_sample = sample * mpx->gain;
float limit_dbr = mpx->target + 0.41f;
float limit_dbr = mpx->target + 0.1f;
float limit_deviation_hz = dbr_to_deviation(limit_dbr);
float normalized_limit = limit_deviation_hz / mpx->mpx_deviation;
float final_limit = fminf(1.0f, normalized_limit);