mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 19:23:51 +01:00
oh shit
This commit is contained in:
@@ -52,7 +52,7 @@ float bs412_compress(BS412Compressor* mpx, float sample) {
|
|||||||
if (modulation_power > mpx->target) {
|
if (modulation_power > mpx->target) {
|
||||||
mpx->gain = mpx->attack * mpx->gain + (1.0f - mpx->attack) * target_gain;
|
mpx->gain = mpx->attack * mpx->gain + (1.0f - mpx->attack) * target_gain;
|
||||||
} else {
|
} else {
|
||||||
mpx->gain = mpx->release * mpx->gain + (1.0f - mpx->release) * target_gain;
|
mpx->gain = mpx->release * mpx->gain + (1.0f - mpx->release) * (1.0f/target_gain);
|
||||||
}
|
}
|
||||||
|
|
||||||
mpx->gain = fminf(mpx->max, mpx->gain);
|
mpx->gain = fminf(mpx->max, mpx->gain);
|
||||||
|
|||||||
Reference in New Issue
Block a user