mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-16 08:34:10 +02:00
Small fix to envelope operations in Equalization user interface
This commit is contained in:
parent
7ad910c0a6
commit
e36070e671
@ -1671,9 +1671,10 @@ void EffectEqualization::setCurve(int currentCurve)
|
|||||||
value = mCurves[currentCurve].points[pointCount].dB;
|
value = mCurves[currentCurve].points[pointCount].dB;
|
||||||
if(when <= 1) {
|
if(when <= 1) {
|
||||||
env->InsertOrReplace(when, value);
|
env->InsertOrReplace(when, value);
|
||||||
|
if (when == 1)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// There are more points at higher freqs, so interpolate next one then stop.
|
|
||||||
when = 1.0;
|
when = 1.0;
|
||||||
double lastF = mCurves[currentCurve].points[pointCount-1].Freq;
|
double lastF = mCurves[currentCurve].points[pointCount-1].Freq;
|
||||||
double nextF = mCurves[currentCurve].points[pointCount].Freq;
|
double nextF = mCurves[currentCurve].points[pointCount].Freq;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user