Reduce p level for trough picker. The behaviour here is not what I'd hoped

This commit is contained in:
Chris Cannam
2022-06-07 14:13:24 +01:00
parent 07b339df13
commit 36f993b9a6
2 changed files with 3 additions and 1 deletions

View File

@@ -224,6 +224,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;

View File

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