diff --git a/src/finer/Guide.h b/src/finer/Guide.h index 1541198..f2fa0d9 100644 --- a/src/finer/Guide.h +++ b/src/finer/Guide.h @@ -223,6 +223,8 @@ public: guidance.fftBands[0].f0 = 0.0; guidance.fftBands[0].f1 = lower; + +// std::cout << "x:" << lower << std::endl; guidance.fftBands[1].f0 = lower; guidance.fftBands[1].f1 = higher; diff --git a/src/finer/R3StretcherImpl.cpp b/src/finer/R3StretcherImpl.cpp index d2b078b..8deef82 100644 --- a/src/finer/R3StretcherImpl.cpp +++ b/src/finer/R3StretcherImpl.cpp @@ -654,7 +654,7 @@ R3StretcherImpl::analyseChannel(int c, int inhop, int prevInhop, int prevOuthop) cd->nextSegmentation = cd->segmenter->segment(cd->nextClassification.data()); m_troughPicker.findNearestAndNextPeaks - (classifyScale->mag.data(), 3, nullptr, + (classifyScale->mag.data(), 1, nullptr, classifyScale->troughs.data()); double instantaneousRatio = double(prevOuthop) / double(prevInhop);