From e6acc4edd106f05f8517c44af75e3385c7c7e15a Mon Sep 17 00:00:00 2001 From: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> Date: Sat, 28 Nov 2026 08:53:38 +1100 Subject: [PATCH] aurora-speaker-tuning: mic: carry the measured low-frequency blend 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> --- crates/aurora-speaker-tuning/src/mic.rs | 13 ++++--------- crates/aurora-speaker-tuning/tests/mic.rs | 10 ++++------ 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/crates/aurora-speaker-tuning/src/mic.rs b/crates/aurora-speaker-tuning/src/mic.rs index 3ecefaa2..93f2a62d 100644 --- a/crates/aurora-speaker-tuning/src/mic.rs +++ b/crates/aurora-speaker-tuning/src/mic.rs @@ -35,7 +35,7 @@ //! | `fft` pair | the short-time transform, quadrant window, frame phase 0 (black-box exact) | exact | //! | `aufx/bmfd` | the fixed beam `sum_m W_m(k) X_m(k)` of its property-4630 file, in fixed-beam mode ([`beam_mode`]; the adaptive blend is not engaged there, measured); any other mode refuses | exact | //! | `aufx/sens` | the noise-floor suppressor (`sgv2_core::mic::sens`): the strip's global parameters and the property-1000 noise profile; artifact step fitted, TODO(SPEC) | approximate | -//! | `aufx/lwbo` | the low-frequency blend (`sgv2_core::mic::blend`) against the reference beams; law from the summary, unmeasured, so partial blobs only until measured, TODO(SPEC) | uncharacterised | +//! | `aufx/lwbo` | the low-frequency blend (`sgv2_core::mic::blend`) against the reference beams; law from the summary, measured against black-box whole-graph renders of the unit (broadband, wind-like, steered, onset: 43-60 dB; low-level and tone-in-noise residuals), TODO(SPEC) | approximate | //! | `aufx/ocns` | identity, partial blobs only (documented transparent or attenuating) | uncharacterised | //! | bypassed in the strip | nothing | bypassed | //! | anything else | refused, partial or not | refused | @@ -1295,18 +1295,13 @@ fn fan_out(c: &FanCtx<'_>, node: &str, r: &mut Report) -> Result { &lname, &kind_name(lbox), "freq", - Status::Uncharacterised, + Status::Approximate, format!( - "low-frequency blend (law from the behaviour summary, not yet measured against the unit): beam {main}, comparison {cmp}, blend reference {bl}; boost limit under {} Hz, crossover {}..{} Hz", + "low-frequency blend (law from the behaviour summary, measured against the unit's whole-graph renders): beam {main}, comparison {cmp}, blend reference {bl}; boost limit under {} Hz, crossover {}..{} Hz", law.cutoff_hz, law.xover_min_hz, law.xover_max_hz ), ); - r.todo("lwbo law from the clean summary only (target search, hold/smoother order, crossfade width); no black-box renders"); - if !c.opts.allow_partial { - r.refusals.push(format!( - "{lname} (aufx/lwbo) is not yet measured against the unit; --allow-partial carries the summary law" - )); - } + r.todo("lwbo: low-level and tone-in-noise residuals against the unit's renders (broadband, wind-like, steered and onset input match within 43-60 dB)"); if !beams.iter().all(|x| out.contains(x)) { return Err(bad(format!("{node} feeds a beamformer the blend unit does not take"))); } diff --git a/crates/aurora-speaker-tuning/tests/mic.rs b/crates/aurora-speaker-tuning/tests/mic.rs index a3348d57..e3b7ec3d 100644 --- a/crates/aurora-speaker-tuning/tests/mic.rs +++ b/crates/aurora-speaker-tuning/tests/mic.rs @@ -689,15 +689,13 @@ fn a_low_frequency_blend_after_two_beamformers_compiles_and_runs() { f.files.push(("mic_das.plist".into(), beam_file(2, &[1.0, 0.0]))); f.beam = beam_file(2, &[1.0, 1.0]); let b = f.tree("mic-lwbo"); - // not yet measured against the unit: refused by default, partial on request - let d = mic::compile(&b, &mic::Options::default(), &mut Diagnostics::default()).unwrap(); - assert!(d.refused() && d.report.refusals.iter().any(|r| r.contains("aufx/lwbo")), "{:?}", d.report.refusals); - let opts = partial(); + // measured against the unit: a default compile carries it, whole + let opts = mic::Options::default(); let c = mic::compile(&b, &opts, &mut Diagnostics::default()).unwrap(); assert!(!c.refused(), "{:?}", c.report.refusals); - assert!(c.report.partial); + assert!(!c.report.partial); let st: Vec<(&str, &Status)> = c.report.stages.iter().map(|s| (s.name.as_str(), &s.status)).collect(); - assert!(st.contains(&("Das", &Status::Exact)) && st.contains(&("Lw", &Status::Uncharacterised)), "{st:?}"); + assert!(st.contains(&("Das", &Status::Exact)) && st.contains(&("Lw", &Status::Approximate)), "{st:?}"); let p = c.params.unwrap(); assert_eq!(p.refs.len(), 1); assert!(matches!(p.freq[0], sgv2_core::mic::FreqStage::LowBand { compare: 0, blend: 0, .. }));