mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-08 14:13:57 +01:00
Variable cleanup
This commit is contained in:
@@ -955,7 +955,6 @@ bool EffectEqualization::TransferDataFromWindow()
|
||||
|
||||
int m = 2 * mMSlider->GetValue() + 1; // odd numbers only
|
||||
if (m != mM) {
|
||||
rr = true;
|
||||
mM = m;
|
||||
mPanel->ForceRecalc();
|
||||
|
||||
|
||||
@@ -283,7 +283,6 @@ void EffectLeveller::CalcLevellerFactors()
|
||||
limit = gLimit[f];
|
||||
prevAdjLimit = gAdjLimit[prev];
|
||||
addOnValue = prevAdjLimit - (adjFactor * prevLimit);
|
||||
upperAdjLimit = (adjFactor * limit) + addOnValue;
|
||||
|
||||
gAddOnValue[f] = addOnValue;
|
||||
gAdjLimit[f] = (adjFactor * limit) + addOnValue;
|
||||
|
||||
@@ -157,7 +157,7 @@ sampleCount EffectPhaser::ProcessBlock(float **inBlock, float **outBlock, sample
|
||||
gain = (1.0 + cos(skipcount * lfoskip + phase)) / 2.0;
|
||||
|
||||
// change lfo shape
|
||||
gain = (exp(gain * phaserlfoshape) - 1.0) / (exp(phaserlfoshape) - 1.0);
|
||||
gain = expm1(gain * phaserlfoshape) / expm1(phaserlfoshape);
|
||||
|
||||
// attenuate the lfo
|
||||
gain = 1.0 - gain / 255.0 * mDepth;
|
||||
|
||||
@@ -121,7 +121,7 @@ GeometricInputTimeWarper::GeometricInputTimeWarper(double tStart, double tEnd,
|
||||
double GeometricOutputTimeWarper::Warp(double originalTime) const
|
||||
{
|
||||
double scaledTime = mTimeWarper.Warp(originalTime);
|
||||
return mTStart + mScale*log(mC0 * scaledTime + 1.0);
|
||||
return mTStart + mScale*log1p(mC0 * scaledTime);
|
||||
}
|
||||
|
||||
GeometricOutputTimeWarper::GeometricOutputTimeWarper(double tStart, double tEnd,
|
||||
|
||||
Reference in New Issue
Block a user