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.
This commit is contained in:
Paul Licameli 2017-09-16 12:27:56 -04:00
parent ecd149edad
commit a5aaaf5176
1 changed files with 4 additions and 2 deletions

View File

@ -242,12 +242,14 @@ EffectEqualization::EffectEqualization()
mLogEnvelope = std::make_unique<Envelope>
(false,
MIN_dBMin, MAX_dBMax, // MB: this is the highest possible range
1.0);
0.0);
mLogEnvelope->SetTrackLen(1.0);
mLinEnvelope = std::make_unique<Envelope>
(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();