Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions crates/aurora-speaker-tuning/src/mic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down Expand Up @@ -1295,18 +1295,13 @@ fn fan_out(c: &FanCtx<'_>, node: &str, r: &mut Report) -> Result<Fan> {
&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")));
}
Expand Down
10 changes: 4 additions & 6 deletions crates/aurora-speaker-tuning/tests/mic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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, .. }));
Expand Down
Loading