Add chirp-bin calibration profiles
This commit is contained in:
parent
353031858a
commit
3a7410d510
10 changed files with 195 additions and 38 deletions
|
|
@ -75,7 +75,12 @@ the de Bruijn triplet trellis. A constrained local waveform correlation around
|
|||
the decoded anchor delay provides the final fractional offset. The decoder keeps
|
||||
the full bin-energy surface for each classified chirp and aggregates it into
|
||||
per-band response evidence, so the same stream can calibrate timing and the
|
||||
speaker/room/mic transfer function. The synthetic invariant is
|
||||
speaker/room/mic transfer function. `MimirChirpBinCalibrationProfile` is the
|
||||
first named surface for that evidence: it summarizes frames, anchors, clock
|
||||
confidence, anchor error, usable bands, and strongest measured bins per source.
|
||||
The profile is kept even when a timing report is rejected, because a failed
|
||||
sync window can still teach us which bands survived the speaker/room/mic path.
|
||||
The synthetic invariant is
|
||||
`dotnet run --project .\src\Mimir.BufferSmoke\Mimir.BufferSmoke.csproj -- --chirp-bin-self-test`;
|
||||
it renders the chirp-bin timeline, decodes by dechirp plus Goertzel bins, and
|
||||
requires code-valid triplet anchors plus a stable source clock. `chirp-only`
|
||||
|
|
@ -168,12 +173,13 @@ produce at least three matched canonical anchors, it has not decoded timing for
|
|||
that window. Reports carry rounded integer delay, fractional delay, and the
|
||||
count/confidence of timeline-symbol anchors used to derive the report.
|
||||
|
||||
The same timeline also starts the frequency-response path. Each active report
|
||||
includes per-band dechirped energy for the chirp-bin bank. That is not a
|
||||
finished room/mic normalizer yet, but it is the live surface that will become
|
||||
response-curve estimation: loopback carries what was emitted, each mic carries
|
||||
what survived speaker, air, room, and capsule, and the ratio over the continuous
|
||||
timeline becomes gain/phase correction evidence.
|
||||
The same timeline also starts the frequency-response path. Each active chirp-bin
|
||||
decode emits a calibration profile for the source, whether or not that source
|
||||
earns a timing report. That is not a finished room/mic normalizer yet, but it is
|
||||
the live surface that will become response-curve estimation: loopback carries
|
||||
what was emitted, each mic carries what survived speaker, air, room, and
|
||||
capsule, and the ratio over the continuous timeline becomes gain/phase
|
||||
correction evidence.
|
||||
|
||||
`MimirAudioSynchronizationStateTracker` turns continuous observations into
|
||||
state. It confidence-gates reports, smooths fractional delay per source, and
|
||||
|
|
@ -206,7 +212,7 @@ flowchart TD
|
|||
H --> L["triplet timeline anchors"]
|
||||
L --> M["per-source clock fit"]
|
||||
M --> N["delay + SRO"]
|
||||
G --> I["per-band response estimates"]
|
||||
G --> I["per-source calibration profile"]
|
||||
N --> J["fractional delay / resampler actuator"]
|
||||
I --> K["frequency response normalization"]
|
||||
```
|
||||
|
|
@ -223,6 +229,12 @@ Continuous chirplet evidence gives both the current delay and the drift/SRO by
|
|||
watching delay change over time. Per-band energy over the same stream gives the
|
||||
normalization curve. The important constraint is that all three measurements
|
||||
must be tied to the same emitted timeline, not three separately invented probes.
|
||||
The current ASIO artifact proves why this matters: Scarlett loopback channel 2
|
||||
and loopback channel 3 both decode 12 anchors with 0.996 clock confidence, while
|
||||
physical input 1 decodes a noisier independent clock and a different strongest
|
||||
band set but still fails pairwise timing because no canonical events overlap
|
||||
the loopback path. That is not a blank failure anymore; it is calibration data
|
||||
for the next codebook/weighting cut.
|
||||
|
||||
The symbol layer is intentionally redundant. It does not rely on one fixed
|
||||
frequency shelf: timing gaps, chirp duration, start band, and glide shape all
|
||||
|
|
|
|||
|
|
@ -102,8 +102,11 @@ a named invariant that the native runtime cannot protect yet.
|
|||
with constrained local waveform correlation around the decoded active delay.
|
||||
Each classified chirp carries the full bin-energy response surface, and stream
|
||||
decodes aggregate that into per-band calibration evidence for frequency
|
||||
response normalization. Reports/states expose delay in microseconds as well
|
||||
as fractional samples.
|
||||
response normalization. `MimirChirpBinCalibrationProfile` preserves that
|
||||
evidence per source, including frames, anchors, clock confidence, anchor
|
||||
error, usable band count, and strongest measured bins, even when the source
|
||||
does not produce a timing report. Reports/states expose delay in microseconds
|
||||
as well as fractional samples.
|
||||
Hybrid emits this as low-gain half-second bursts every two seconds only while
|
||||
passive confidence is weak.
|
||||
Use `--chirp-bin-self-test` to prove the codebook/decoder and
|
||||
|
|
@ -113,8 +116,12 @@ a named invariant that the native runtime cannot protect yet.
|
|||
- `Mimir.BufferSmoke --render-chirp-bin-f32` and `--analyze-asio-f32` provide
|
||||
the current active Scarlett artifact proof. A 192 kHz chirp-bin run decoded
|
||||
Focusrite `Loopback 1 -> Loopback 2` at `0.000 us` with 12 matched anchors and
|
||||
0.999 confidence. Physical inputs did not produce matched anchors in that run,
|
||||
so acoustic robustness remains separate from the clean loopback timing proof.
|
||||
0.999 confidence. The ASIO analyzer now prints chirp-bin calibration profiles
|
||||
for every decoded source; physical input 1 still failed pairwise timing in
|
||||
the stored artifact, but it produced 14 frames, 12 anchors, 0.865 clock
|
||||
confidence, and a different strongest band set. Acoustic robustness remains
|
||||
separate from the clean loopback timing proof, but failed timing windows now
|
||||
leave usable response evidence instead of silence.
|
||||
A standalone 192 kHz synthetic receiver test recovers a 500 ms delayed audio
|
||||
stream to below printed microsecond precision using only the chirp-bin
|
||||
codebook and schedule state.
|
||||
|
|
@ -153,9 +160,9 @@ a named invariant that the native runtime cannot protect yet.
|
|||
workers for local mic, loopback, and network audio feeds. Use the verified
|
||||
Focusrite ASIO path for Scarlett capture; WASAPI remains a diagnostic
|
||||
witness, not the Scarlett hot path.
|
||||
4. Prove the active chirp-bin path through real microphones, not only Scarlett
|
||||
loopback; tune acoustic bands/gain/code spacing from measured mic response
|
||||
without weakening the standalone codebook/schedule receiver invariant.
|
||||
4. Use chirp-bin calibration profiles from real microphones to tune acoustic
|
||||
bands, gain, and code spacing without weakening the standalone
|
||||
codebook/schedule receiver invariant.
|
||||
5. Add the synchronization actuator: drive a variable-rate resampler and
|
||||
fractional delay line per non-reference stream from the smoothed
|
||||
`MimirAudioSynchronizationState`. First, prove the constrained chirplet
|
||||
|
|
|
|||
Loading…
Reference in a new issue