mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
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:
parent
40f12e1205
commit
46aa204eb8
1 changed files with 8 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue