From 20037c7c5ba4696d3ded1feea4ae9257ecf1c034 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Thu, 20 Aug 2026 10:09:14 +0300 Subject: [PATCH] docs(aac): round-47 re-trial of band_shift_correction refuted by the trustworthy witness too Round-46's QMF-exact fit of the reference decoder's own HF content on patch (3,28,11) found a transfer carrying band_shift_correction's quarter-turn phase signature, raising doubt that round-37's revert (based on the STFT-based EC_AAC_SBR_PARITY_SPLIT metric, since shown untrustworthy at this precision) was the wrong call. Re-applied the rotation at generate's patch-copy site behind a temporary env gate and re-judged with EC_AAC_SBR_QMF_WITNESS's own QMF-domain coherence table -- the trustworthy instrument this re-trial was chartered to use instead of PARITY_SPLIT. Both signs of the rotation made sim-vs-ours coherence on the exact patch the fit was built from WORSE (band28 0.2628->0.0161/0.0282, band38 0.0669->0.0694/0.1068), moving further from the reference's 0.42-0.79 rather than toward it. Round-46's fit-based prediction does not survive contact with the instrument that was supposed to vindicate it. No production code changes: the trial code (env gate, rotation application, HfHistory::slot_phase) is reverted in full. Only the doc comment above band_shift_correction gains a coda recording this re-trial so a future round doesn't re-litigate it a third time on the same fit alone. --- crates/ec-aac/src/sbr_hf.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/crates/ec-aac/src/sbr_hf.rs b/crates/ec-aac/src/sbr_hf.rs index 21fa9b36..cd82b12e 100644 --- a/crates/ec-aac/src/sbr_hf.rs +++ b/crates/ec-aac/src/sbr_hf.rs @@ -64,6 +64,24 @@ use ec_dsp::Complex; /// unrotated is what actually matches it. This function is kept (and /// pinned by its own unit tests) purely to document that convention as /// intentional, not to be called from `generate`'s patch-copy site. +/// +/// Round-46 raised a re-trial candidate: `EC_AAC_SBR_PARITY_SPLIT` (an 8-bin +/// STFT metric) had been suspected untrustworthy at this precision, and a +/// QMF-exact fit of the reference decoder's own HF content on patch +/// `(3,28,11)` (gap 25, `mod 4 == 1`) found a transfer with this function's +/// quarter-turn phase signature. Round-47 re-applied the rotation at +/// `generate`'s patch-copy site (env-gated, both signs) and re-judged with +/// `EC_AAC_SBR_QMF_WITNESS`'s own QMF-domain coherence table instead of the +/// STFT one -- the trustworthy instrument the re-trial was chartered to use. +/// Both signs made sim-vs-ours coherence on patch `(3,28,11)` WORSE, not +/// better (band28 0.2628 unrotated -> 0.0161 rotated -> 0.0282 flipped; +/// band38 0.0669 -> 0.0694 -> 0.1068), moving further from the reference's +/// 0.42-0.79 rather than toward it, refuting round-46's fit-based +/// prediction under the very instrument that was supposed to vindicate it. +/// (One sign did nudge whole-file full-band correlation up rather than +/// round-36's dip, but that's moot once the witness itself disagrees.) The +/// verdict stands as round-37 left it: `generate`'s patch-copy site keeps +/// the plain, unrotated copy. /// Returns the signed number of `pi/2` quarter-turns per QMF slot that /// *would* need to be applied to restore frequency-pure placement. #[allow(dead_code)] // documentation of the characterized convention; tests call it