Close Γ-W1-T7 re-review: pitch-sync cadence math, floor-model regression check, evidence-count fix, one-home comments

New cadence-collapse-band test at P=1470 shows PSOLA eliminates the corner rather than regressing it (18.52% -> 0.00%).
This commit is contained in:
2026-08-02 05:34:43 -04:00
parent ef59265e7a
commit f1168e16eb
9 changed files with 249 additions and 40 deletions
+9 -2
View File
@@ -592,8 +592,15 @@ static void reportFloorProbeMechanism() {
int n = 0;
const bool reach = alignmentReachable(period, lo, hi, &n);
const double freq = static_cast<double>(sr) / period;
// The cadence inequality from time_stretch.h, evaluated for this row.
const double cadence = static_cast<double>(w) / std::fabs(rate - shift);
// The cadence inequality from time_stretch.h, evaluated for this row against the
// ACTUAL nominal jump this geometry resolves to — under g_pitchSynchronous that is
// periodAlignedJump's answer, not always the fixed window, so the two passes of this
// report (fixed-window / pitch-synchronous) must not print the same number.
PitchShifter jumpProbe;
jumpProbe.configure(w);
jumpProbe.setSourcePeriod(g_pitchSynchronous ? period : 0.0);
const double cadence =
static_cast<double>(jumpProbe.spliceJump()) / std::fabs(rate - shift);
const double outPeriod = period / shift;
std::printf(" P=%5.0f (%.1f Hz): alignable in [%.0f,%.0f]? %s%s | cadence %.0f fr vs "
"output period %.0f fr -> %s\n",