Add chirp-bin calibration profiles

This commit is contained in:
Meta Vens 2026-05-23 20:03:48 +01:00
commit 3a7410d510
10 changed files with 195 additions and 38 deletions

View file

@ -111,8 +111,11 @@ scheduled-waveform correlation for standalone source-offset refinement. Pairwise
sync compares matched anchors first, then only accepts independent clock-fit
offsets inside the live latency horizon so period aliases do not become absurd
reports. Each classified chirp carries the full dechirped bin-energy surface,
and decodes aggregate that into per-band response evidence for future
frequency-response normalization. Reports/states expose `delayUs` next to
and decodes aggregate that into a `MimirChirpBinCalibrationProfile` per source
with frames, anchors, clock confidence, anchor error, usable band count, and
strongest bins. The analyzer keeps those profiles even when no timing report is
accepted, so a physical mic path can fail synchronization while still teaching
the next decoder which bands survived. Reports/states expose `delayUs` next to
fractional sample delay.
`Mimir.BufferSmoke
--chirp-only-sync-self-test --sample-rate 192000` and `--hybrid-sync-self-test
@ -157,11 +160,12 @@ Focusrite outputs while capturing every ASIO input as raw interleaved Float32.
`Mimir.BufferSmoke --analyze-asio-f32` feeds those captured channels into the
same runtime active analyzer. A real 192 kHz chirp-bin Scarlett artifact decoded
`Loopback 1 -> Loopback 2` at exactly `0.000 us` with 12 matched anchors and
0.999 confidence. Physical input 2 independently decoded a coherent clock in
that artifact, but its event path did not overlap loopback and its raw
clock-offset difference was a period alias far outside the live latency horizon,
so Mimir correctly rejected it as insufficient anchors. Acoustic robustness is
now the open problem, not clean loopback timing or standalone decoder shape.
0.999 confidence. The same analyzer now prints calibration profiles for
decoded sources. Physical input 1 still fails pairwise timing in the stored
artifact, but it leaves a concrete response profile: 14 frames, 12 anchors,
0.865 clock confidence, and strongest bins around 4525, 4075, and 7225 Hz.
Acoustic robustness is now the open problem, not clean loopback timing,
standalone decoder shape, or basic response evidence.
## Visual Fusion

View file

@ -90,8 +90,8 @@ Get-Content .\state\evidence.jsonl -Tail 8
correlation for final fractional delay. It also supports standalone source
offset recovery from schedule/codebook state, which is the Raven/phone shape.
Each classified chirp carries the full dechirped bin-energy surface; sync
reports expose those bands so the same stream can become frequency-response
calibration evidence.
reports expose those bands, and `MimirChirpBinCalibrationProfile` preserves
per-source calibration evidence even when timing is rejected.
`Mimir.BufferSmoke
--chirp-only-sync-self-test --sample-rate 192000` and
`--hybrid-sync-self-test --sample-rate 192000` both recover a 1269.5-sample
@ -119,16 +119,20 @@ Get-Content .\state\evidence.jsonl -Tail 8
comparison and is now diagnostic only. A real Scarlett chirp-bin artifact run
at 192 kHz decoded `Loopback 1 -> Loopback 2` at `0.000 us` delay with 12
matched anchors and 0.999 confidence in the normal active analyzer. Physical
input 2 independently decoded a coherent clock, but its clock-offset
difference was a period alias outside the live latency horizon and is rejected
as insufficient anchors. Acoustic robustness is still open.
inputs still do not earn accepted timing against loopback, but the active
analyzer now prints calibration profiles for decoded channels. In the stored
artifact, physical input 1 produced 14 frames, 12 anchors, 0.865 clock
confidence, and a different strongest-bin profile while failing pairwise
timing. Acoustic robustness is still open, but failed timing now leaves
response evidence.
- Raven also has a 192 kHz loopback-capable Scarlett for co-streamer/game timing
evidence. Do not move the heavy soundfield or sensor-fusion workload there.
## Immediate Re-entry Instruction
Prove the active chirp-bin path through real microphones, then feed Scarlett
ASIO callbacks into `Mimir.Runtime` and turn decoded clock fits into the
SRO/fractional-delay actuator. Keep loopback as timing authority. Do not call
synchronization analysis from UI/telemetry readouts. Do not restore deleted
script infrastructure because a stale doc once missed it.
Use the chirp-bin calibration profiles from real microphones to tune the active
codebook/bands/weighting, then feed Scarlett ASIO callbacks into `Mimir.Runtime`
and turn decoded clock fits into the SRO/fractional-delay actuator. Keep
loopback as timing authority. Do not call synchronization analysis from
UI/telemetry readouts. Do not restore deleted script infrastructure because a
stale doc once missed it.