From a5aaaf5176e13ad7ee8a139fce4b5f430e85a768 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Sat, 16 Sep 2017 12:27:56 -0400 Subject: [PATCH] Bug1744: Switch flat EQ curve to linear and draw points correctly... ... Problems reported there were not consequences of my work in 2.2.0 on envelopes, but existed in 2.1.3 also. --- src/effects/Equalization.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/effects/Equalization.cpp b/src/effects/Equalization.cpp index 4e002821f..241adee5e 100644 --- a/src/effects/Equalization.cpp +++ b/src/effects/Equalization.cpp @@ -242,12 +242,14 @@ EffectEqualization::EffectEqualization() mLogEnvelope = std::make_unique (false, MIN_dBMin, MAX_dBMax, // MB: this is the highest possible range - 1.0); + 0.0); + mLogEnvelope->SetTrackLen(1.0); mLinEnvelope = std::make_unique (false, MIN_dBMin, MAX_dBMax, // MB: this is the highest possible range - 1.0); + 0.0); + mLinEnvelope->SetTrackLen(1.0); mEnvelope = (mLin ? mLinEnvelope : mLogEnvelope).get();