13
0

Limit gain reduction of a-expander to 160 dB in order to ...

improve release behavior.

This slows down the release after events like single snare hits as, the gain
reduction only releases to 160 dB rather than to inf.
This commit is contained in:
Johannes Mueller 2017-08-07 14:02:33 +02:00
parent 40f12e1205
commit 46aa204eb8

View File

@ -372,6 +372,10 @@ run_mono(LV2_Handle instance, uint32_t n_samples)
current_gainr = Lxg - Lyg;
if (current_gainr > 160.f) {
current_gainr = 160.f;
}
if (current_gainr > old_gainr) {
current_gainr = release_coeff*old_gainr + (1.f-release_coeff)*current_gainr;
} else if (current_gainr < old_gainr) {
@ -541,6 +545,10 @@ run_stereo(LV2_Handle instance, uint32_t n_samples)
current_gainr = Lxg - Lyg;
if (current_gainr > 160.f) {
current_gainr = 160.f;
}
if (current_gainr > old_gainr) {
current_gainr = release_coeff*old_gainr + (1.f-release_coeff)*current_gainr;
} else if (current_gainr < old_gainr) {