Commits
Commits on
214cdf2befd543569feaaaf45888fe80e40318dfFiltered to scripts/aac-tables/sbrnoise.pyClear filter2026-08-19
fix(aac-sbr): noise-floor dequant is a signal-relative ratio, not an absolute energyAhmet Kaan Gümüş · 5537fae
fix(aac-sbr): noise-floor dequant is a signal-relative ratio, not an absolute energy Round-21 Task 1: a reference-decoder probe (scripts/aac-tables/sbrnoise.py) sweeping the noise-floor raw value q_q at a fixed envelope target shows total HF-band output power staying nearly flat across the whole q_q range, not scaling additively with dequant_noise(q_q) as our own decoder assumed. That's the signature of the envelope target being split signal=target/(1+Q_div), noise=target*Q_div/(1+Q_div) with Q_div=dequant_noise(q_q), not noise added independently on top of the full target. adjust() now computes that split per (envelope, band) cell and injects noise there directly, replacing the old separate noise-grid pass that treated dequant_noise's return value as a standalone absolute energy comparable to dequant_env's unrelated unit scale. On the real-file bar (reeln) this moves correlation only slightly (ch0 0.9726->0.9732, ch1 0.9705->0.9716): real transmitted q_q values apparently keep Q_div small regardless of interpretation, so the noise-floor circularity hypothesis still doesn't explain this file's HF correlation gap -- but the fix itself is now unit-consistent with the measured reference behavior and is kept as a correctness fix.