Commits
Commits on
a913c8463d4bd520ab43837841cd80ec10d4d172Filtered to scripts/aac-tables/sbrpatchmap.pyClear filter2026-08-20
fix(sbr-tables): stop sbrpatchmap's delta-huffman filler desyncing envelope1/noise1Ahmet Kaan Gümüş · a913c84
fix(sbr-tables): stop sbrpatchmap's delta-huffman filler desyncing envelope1/noise1 sbr_bits_full's slot() defaulted every un-supplied delta band to T.FILL (24 raw zero bits); ENV30_F/NOISE_F's shortest codeword (delta=0) is only 1 bit, so 23 leftover zero bits per slot bled into every field transmitted after the first multi-band delta run, silently corrupting envelope1/noise1's raw values to 0 regardless of what stream_one_band asked for (confirmed via EC_AAC_SBR_DEBUG before/after). Also switched the readout from power buckets to fractional-frequency-offset line detection per round-29's charter, and moved the tone off the ambiguous band-boundary bin. Sanity gate (ours vs build_patches) still fails: localized to the tone's bin-placement assumption (k = p*16), not build_patches or the runtime (patches dumped via EC_AAC_SBR_DEBUG match build_patches exactly). Left documented as open in the module docstring; reference maps not read this round since Task 1's own gate blocks it.
probe(sbr-patchmap): infra for measuring the reference's real HF patch mapAhmet Kaan Gümüş · e3a8adf
probe(sbr-patchmap): infra for measuring the reference's real HF patch map
adts_to_pcm example lets our own decoder be driven through the same
one-band-at-a-time probe streams sbrpatchmap.py builds for the reference
decoder (needs an explicit same-rate-SBR AudioSpecificConfig -- plain
AacDecoder::new() never turns SBR on from bare ADTS). sbrpatchmap.py reads
reeln's ACTUAL header off our own decoder's EC_AAC_SBR_DEBUG dump
(start_freq=5 stop_freq=8 xover_band=0 -> kx=14 k2=43 n_q=3, matching the
ledger's fact but NOT sbr_hf.rs's real_file_tables() unit test, whose
guessed stop_freq/xover_band=3/2 gives a different kx=16 k2=29 header) and
ports build_patches to Python for a live prediction-vs-measurement diff.
Blocked before a single measurement: tone_core()'s isolated-MDCT-bin core
(sbrchirp.py) fails outright against this header/grid shape ("channel
element 0.0 is not allocated" / "Invalid data found", zero PCM decoded),
reproducing round-19's "isolated-tone encoding does not round-trip" dead
end on the real header instead of the round-18 SBR-engagement bug it was
first seen with. Not fixed this round -- see ledger for next steps.