Backed out changeset b1275ea1b6c8

This makes very little perceptible difference, possibly for the worse, and it is more complicated
This commit is contained in:
Chris Cannam
2022-06-09 15:26:16 +01:00
parent 41e726b510
commit 4a9574b7ee
3 changed files with 5 additions and 37 deletions

View File

@@ -140,7 +140,6 @@ public:
void updateGuidance(double ratio,
const double *const magnitudes,
const double *const prevMagnitudes,
const double *const channelMixedMagnitudes,
const BinSegmenter::Segmentation &segmentation,
const BinSegmenter::Segmentation &prevSegmentation,
const BinSegmenter::Segmentation &nextSegmentation,
@@ -222,13 +221,13 @@ public:
if (lower > m_maxLower) lower = m_maxLower;
*/
double prevLower = guidance.fftBands[0].f1;
double lower = descendToValley(prevLower, channelMixedMagnitudes);
double lower = descendToValley(prevLower, magnitudes);
if (lower > m_maxLower || lower < m_minLower) {
lower = m_defaultLower;
}
double prevHigher = guidance.fftBands[1].f1;
double higher = descendToValley(prevHigher, channelMixedMagnitudes);
double higher = descendToValley(prevHigher, magnitudes);
if (higher > m_maxHigher || higher < m_minHigher) {
higher = m_defaultHigher;
}