Rather than using trough picker, make the division frequencies drift downhill

This commit is contained in:
Chris Cannam
2022-06-09 14:29:51 +01:00
parent 70a7b6d688
commit ab284f0047
3 changed files with 47 additions and 35 deletions

View File

@@ -109,7 +109,6 @@ protected:
FixedVector<double> mag;
FixedVector<double> phase;
FixedVector<double> advancedPhase;
FixedVector<int> troughs;
FixedVector<double> prevMag;
FixedVector<double> accumulator;
@@ -122,7 +121,6 @@ protected:
mag(bufSize, 0.f),
phase(bufSize, 0.f),
advancedPhase(bufSize, 0.f),
troughs(bufSize, 0),
prevMag(bufSize, 0.f),
accumulator(_longestFftSize, 0.f)
{ }
@@ -261,7 +259,6 @@ protected:
Guide m_guide;
Guide::Configuration m_guideConfiguration;
ChannelAssembly m_channelAssembly;
Peak<double, std::less<double>> m_troughPicker;
std::unique_ptr<StretchCalculator> m_calculator;
std::unique_ptr<Resampler> m_resampler;
std::atomic<int> m_inhop;