This commit is contained in:
Chris Cannam
2022-05-25 11:16:06 +01:00
parent 973a334f75
commit 47476b9088
2 changed files with 2 additions and 8 deletions

View File

@@ -399,9 +399,6 @@ R3StretcherImpl::consume()
v_copy(scale->prevMag.data(), v_copy(scale->prevMag.data(),
scale->mag.data(), scale->mag.data(),
bufSize); bufSize);
v_copy(scale->prevAdvancedPhase.data(),
scale->advancedPhase.data(),
bufSize);
} }
for (const auto &band : cd->guidance.fftBands) { for (const auto &band : cd->guidance.fftBands) {

View File

@@ -152,16 +152,14 @@ protected:
struct ChannelScaleData { struct ChannelScaleData {
int fftSize; int fftSize;
int bufSize; // size of every freq-domain array here: fftSize/2 + 1 int bufSize; // size of every freq-domain array here: fftSize/2 + 1
//!!! review later which of these we are actually using!
FixedVector<double> timeDomain; FixedVector<double> timeDomain;
FixedVector<double> real; FixedVector<double> real;
FixedVector<double> imag; FixedVector<double> imag;
FixedVector<double> mag; FixedVector<double> mag;
FixedVector<double> phase; FixedVector<double> phase;
FixedVector<double> advancedPhase; FixedVector<double> advancedPhase;
FixedVector<int> troughs; //!!! not used in every scale FixedVector<int> troughs;
FixedVector<double> prevMag; //!!! not used in every scale FixedVector<double> prevMag;
FixedVector<double> prevAdvancedPhase;
FixedVector<double> accumulator; FixedVector<double> accumulator;
ChannelScaleData(int _fftSize, int _longestFftSize) : ChannelScaleData(int _fftSize, int _longestFftSize) :
@@ -175,7 +173,6 @@ protected:
advancedPhase(bufSize, 0.f), advancedPhase(bufSize, 0.f),
troughs(bufSize, 0), troughs(bufSize, 0),
prevMag(bufSize, 0.f), prevMag(bufSize, 0.f),
prevAdvancedPhase(bufSize, 0.f),
accumulator(_longestFftSize, 0.f) accumulator(_longestFftSize, 0.f)
{ } { }