feat: change the compressor unit to apply post-gain instead of pregain.

Pregaining ran into trouble: could not bring the signal level back to near 0dB. For example, with infinite ratio in the pre-gain system, the signal level was capped at threshold, which in turn ran into trouble with stereo signals.
This commit is contained in:
vsariola
2021-03-20 17:01:04 +02:00
parent 76cf47a070
commit 42c9e045b7
7 changed files with 15 additions and 20 deletions

View File

@ -49,7 +49,7 @@ patch:
parameters: {stereo: 1}
id: 1
- type: compressor
parameters: {attack: 32, invgain: 32, ratio: 96, release: 64, stereo: 1, threshold: 64}
parameters: {attack: 16, invgain: 64, ratio: 96, release: 64, stereo: 1, threshold: 71}
- type: mulp
parameters: {stereo: 1}
- type: out