zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit c7bc72f023d9643bbac8fae362b165a9bee0a9ba
parent c9bfad0e9abc19bbc4e9e11de8cca3e0181d2db8
Author: Friedolino <[email protected]>
Date:   Fri, 26 Feb 2021 22:36:28 +0100

fix envstretch at forced release

Diffstat:
Msrc/Synth/Envelope.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Synth/Envelope.cpp b/src/Synth/Envelope.cpp @@ -170,7 +170,7 @@ float Envelope::envout(bool doWatch) else out = envoutval + (envval[releaseindex] - envoutval) * t; // linear interpolation envoutval and envval[releaseindex] - t += envdt[releaseindex] * envstretch; + t += envdt[releaseindex]; if(t >= 1.0f) { // move to the next segment currentpoint = envsustain + 2;