Repository navigation
mic: carry the measured low-frequency blend (newer Air designs) - #287
Conversation
The low-frequency blend unit of the newer Air microphone designs was carried only in partial blobs, because its law came from the behaviour summary and had never been compared with the unit. Black-box renders of the unit's whole microphone graph are now available, and the existing law matches them: 43 to 60 dB difference SNR on broadband, wind-like, steered-source and onset input, 35 to 37 dB on a real room capture, level within 0.05 dB, no lag. Low-level and tone-in-noise input match less well (19 to 26 dB); that is noted as a residual. Mark the stage approximate, like the suppressor, so a default compile carries it. Four designs now compile whole. The rendered output is bit-identical to the partial blob's; every blob that compiled before is byte-identical. Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
|
Merge readiness at
Areas: none matched in CODEOWNERS Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Code-owner review requested: @aurora-silicon/core @aurora-silicon/omarchy-mac @aurora-silicon/aurora-maintainers. Microphone compiler only (speaker sources, engine and blob format untouched); CI and the hardware row at head are in the PR body. If no code-owner review arrives, this may be merged under the 6-point rule once a different-lane App approval is in, no earlier than one hour after this ping. Revert: a plain |
There was a problem hiding this comment.
The delta only reclassifies the existing low-frequency blend and allows it in a whole blob. The operator law and serialized coefficients are unchanged. The whole-graph comparison supports approximate status, with residuals still documented. Approved at this commit.
RyanTheTide
left a comment
There was a problem hiding this comment.
Verdict: FINISH, then merge at e6acc4edd106f05f8517c44af75e3385c7c7e15a
Blockers: none in the code. One merge-gate item is open: a regression row at this head (below).
Checked:
- What changes: the
aufx/lwbostage goes from Uncharacterised to Approximate, and its lwbo-only default refusal is dropped. The blend law itself (sgv2_core::mic::blend,lwbo_law) is unchanged. Every law parameter is still read from the Mac's own strip at compile time. - Taint: the diff adds no numeric constants, presets or coefficients. The only new numbers are difference SNRs (43-60 dB) from our own renders, in a doc comment and a report note. The PR text quotes no preset values. Nothing to block on.
- The refusal path still holds.
--allow-partialis still opt-in: the CLI defaults it to false, and so doesOptions::default(). An uncharacterised stage (ocnsnot bypassed) still refuses a default compile, including in a design with the blend unit, and only--allow-partialcarries it as identity and flags the blob partial (probe). States outside the law still refuse, with the default options and with--allow-partial: another reference channel, crossover min above max ("out of range"), a missing law parameter, and a bypassed blend unit (probes). - The changed test fails without the src change. With
src/mic.rsfrom main,a_low_frequency_blend_after_two_beamformers_compiles_and_runsfails (13 passed, 1 failed). At this headcargo test -p aurora-speaker-tuningpasses in every binary, 0 failed (parity_law included). - The speaker path is untouched. The diff is
src/mic.rsandtests/mic.rsonly; only themic-compilesubcommand reachesmic::. The engine and the blob format are unchanged. It merges cleanly with #284.
Non-blocking: the law was compared with the unit on the J615, J713 and Neo designs only. Any other blend preset that passes BlendLaw::valid (wide sanity bounds) now compiles whole by default as well, the same trust model as the suppressor. If a later design has blend parameters far from those three, it would be worth a render before relying on it.
Remaining before merge: a read-only regression row at e6acc4e on a design this PR should not change (M1 Pro or J413, the mic-compile + LV2 enumeration recipe used for #277; main vs head blob byte-identical). Please also post the J615 row as a PR comment, so the readiness check picks it up; today it is only in the body. This is a compiler-only change, but it changes what gets produced on hardware, so the row stays.
Evidence
Buildbox, cargo 1.96, scratch worktree. cargo test -p aurora-speaker-tuning at e6acc4e: all pass. 3 extra probe tests appended to tests/mic.rs in a scratch worktree (allow_partial default off; a live ocns in a blend design refuses by default and is partial under --allow-partial; out-of-law blend states refuse under both options): all pass. Negative run with main's src/mic.rs: 1 failed (the blend test).
|
Hardware row at e6acc4e: J615 (Linux 7.3.0-aurora-fleet90-airs2, read-only, nothing installed or played).
Result: PASS. |
|
Regression row at e6acc4e: M1 Pro (J316s, Linux 7.3.0-aurora-fleet89, read-only, nothing installed or played). Its design is one this PR must not change. |
|
Merging under the 6-point rule (COMMON-RULES 01:54, permanent 11-28 09:29), all six checked at e6acc4e:
Merges cleanly onto main after #284. Rationale: compiler-only reclassification of a measured stage; the rendered output equals the old partial blob's, and other blobs are byte-identical. Revert: |
What: The low-frequency blend unit in the newer Air microphone designs (the beam blended with a reference beam below a moving crossover) was carried only in partial blobs. Its law came from a behaviour summary and had never been compared with the unit, so a default
mic-compilerefused these designs. Black-box renders of the unit's whole microphone graph are now available, and the existing law matches them. This PR marks the stage approximate, the same status as the suppressor, so a default compile carries it.Tested:
At e6acc4e: aurora-speaker-tuning tests pass. The blend test now expects a whole default compile with the stage approximate.
parity_lawpasses;cargo fmt --check,cargo clippy --workspace --all-targets -D warningsandtools/check-clean.share clean.Offline parity, ours versus the unit's own engine running the whole graph (hosted black-box on a lab Mac), difference SNR:
Lag 0, level within 0.05 dB on broadband input. Low-level and tone-in-noise input are the residuals (noted in the compile report); the impulse shows the known start-up transient.
The rendered output of the new default blob is bit-identical to the old partial blob's (J615 and J713 designs; room capture, wind-like and sweep input). The only blob change is the dropped partial flag and the identity placeholder that partial blobs carry.
Every design that compiled before has a byte-identical blob between main and this branch (19 designs, both pinned 27.2 images).
Hardware row at e6acc4e: J615 (Linux 7.3.0-aurora-fleet90-airs2, read-only, nothing installed or played):
mic-compileof the Mac's own tuning bundle with aarch64 builds. On main it refuses ("not yet measured"). On this head it gives a whole blob: 3 microphones, 48 kHz, latency 1439, partial false, no refusals. Result: PASS.Risk: two-way · on Macs with these designs, a default compile now produces a mic blob where it used to refuse. Other blobs are byte-for-byte unchanged. A plain revert undoes it.
Not yet: the Neo design still refuses (a graph parameter link from its trackpad-noise box); it is the next change. The live processed source on these Macs comes with the provisioning change (#283).