1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-08 14:13:57 +01:00

Variable cleanup

This commit is contained in:
Daniel Winzen
2015-04-23 18:30:38 +02:00
parent 759ff8cd0d
commit 92d522132e
14 changed files with 12 additions and 21 deletions

View File

@@ -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();

View File

@@ -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;

View File

@@ -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;

View File

@@ -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,