Commits
2026-08-20
fix(aac-sbr): 3 dB envelope/balance books carry their positive deltas (accumulation readout); lag search asserts off-bound; noise-fraction env nameAhmet Kaan Gümüş · 060a762
fix(aac-sbr): 3 dB envelope/balance books carry their positive deltas (accumulation readout); lag search asserts off-bound; noise-fraction env name ENV30_F/ENV30_T/ENVB30_F/ENVB30_T had 0 for every positive delta: the one-shot range-check readout cannot see a +d on the 6-bit 3 dB raw field against the 7-bit ceiling. scripts/aac-tables/sbrvalues.py walks each codeword out of range by delta-time accumulation instead (repeated T frames; F words followed by trusted negative T steps) and picks the one delta a simulator of the decoder's complaint reproduces on every probe. All four books read back as exact permutations of -31..31 / -12..12 and every trusted negative entry reproduced unchanged. reeln HF level per band 0.58-0.93 -> 0.99-1.02 up to 22 kHz. best_lag_correlation_ex widens to SEARCH_LAG_MAX on an at-edge winner and asserts !at_edge for every caller; the noise-fraction probe now sets the env name sbr_env actually reads.
fix(aac-sbr): spec-structured envelope adjuster (per-subband gains, limiter/boost with S_M and Q_M, V-table noise, sinusoid phases, slot smoothing, l_A/delta, 6-slot tHFAdj alignment, class-correct noise border, coupled noise dequant)Ahmet Kaan Gümüş · 363af1c
fix(aac-sbr): spec-structured envelope adjuster (per-subband gains, limiter/boost with S_M and Q_M, V-table noise, sinusoid phases, slot smoothing, l_A/delta, 6-slot tHFAdj alignment, class-correct noise border, coupled noise dequant) reeln full 0.9927/0.9918 -> 0.9953/0.9946, above-5k 0.9868/0.9918 -> 0.9985/0.9984, lag 385 -> 1.
2026-08-19
feat(ec-aac): close the eight envelope SBR Huffman codebook valuesAhmet Kaan Gümüş · 86f03f9
feat(ec-aac): close the eight envelope SBR Huffman codebook values The values-stage classifier misread the reference decoder's unconditional "channel element 0.1 is not allocated" complaint (fires on every mono sce probe regardless of range) as a crash signal, hiding in-range codewords as gaps; the discriminator is now whether the parser's byte count matches the full predicted frame length. ENV30_F/ENVB30_F needed their own two-envelope probe config since a lone envelope always forces the 1.5 dB resolution. All twelve SBR codebooks now close with Kraft sum 1 and full values.
feat(ec-aac): derive four SBR noise Huffman codebooks, black boxAhmet Kaan Gümüş · c53ad6b
feat(ec-aac): derive four SBR noise Huffman codebooks, black box
Wires the SBR table-derivation rig's widths/books/values stages into its
CLI and adds the value-assignment stage (bisecting a codeword's raw start
value to the reference decoder's own range-check boundary), then emits
the codebooks that closed with a complete, fully-valued prefix code:
NOISE_T, NOISE_F, NOISEB_T, NOISEB_F. The eight envelope books derive
lengths cleanly but each hit at least one codeword whose value probe
crashes the reference decoder rather than range-checking gracefully
("channel element 0.1 is not allocated"); they are left out of
sbr_tables.rs rather than shipped with a guessed value, per the rig's own
rule against fabricating table entries.