zynaddsubfx

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

commit ca0dafe866fca151e6807acc07857c7894242046
parent 7d3ec052ea97cfb48af8b20d6b68e718a21062e3
Author: fundamental <[email protected]>
Date:   Mon, 25 Jul 2011 01:17:16 -0400

Env: fixing envelope scaling

Fixing bug introduced in 7592cde773d62a74985c7d5e929504627ca0b731

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 @@ -57,7 +57,7 @@ Envelope::Envelope(EnvelopeParams *envpars, REALTYPE basefreq) switch(mode) { case 2: - envval[i] = (1.0 - envpars->Penvval[i] / 127.0) * MIN_ENVELOPE_DB; + envval[i] = (1.0 - envpars->Penvval[i] / 127.0) * -40; break; case 3: envval[i] =