Wire complex contour sync into runtime
This commit is contained in:
parent
f8c16c9a69
commit
470efb0003
15 changed files with 614 additions and 7 deletions
|
|
@ -197,3 +197,13 @@ stored cardioid path still worsens from about `15.817 us` to `17.476 us`.
|
|||
That means the learned phase/group-delay surface is real evidence, while the
|
||||
Perfect Machine still needs more captures and a stronger direct-path
|
||||
hypothesis before calibration can be applied automatically.
|
||||
|
||||
The contour machine is no longer artifact-only. `MimirSynchronizationHub` can
|
||||
now run a live complex-contour lane over rolling Float32 audio buffers when
|
||||
`enableComplexContourRuntime` is true. In that mode Mimir emits the configured
|
||||
`bioacousticWitnessProfileId` through the same canary-packet renderer used by
|
||||
the contour tracker, loads `complexContourChannelModelPath`, reads ASIO-style
|
||||
rolling buffers directly, and publishes `complex-contour` reports alongside the
|
||||
existing audio sync reports. `--complex-contour-runtime-self-test` proves the
|
||||
surface synthetically at 192 kHz: a `693.5` sample delay is recovered at about
|
||||
`0.219 us` error from runtime-shaped rolling buffers.
|
||||
|
|
|
|||
|
|
@ -882,6 +882,48 @@ Invariant:
|
|||
`MimirDirectPathChannelModel` is applied only when the caller supplies the
|
||||
path model; otherwise the tracker stays measurement-only.
|
||||
|
||||
### `MimirComplexContourRuntimeAnalyzer.cs`
|
||||
|
||||
Owns:
|
||||
|
||||
- The live runtime bridge from rolling ASIO-style audio buffers into the complex
|
||||
contour/direct-path tracker.
|
||||
|
||||
Blocks:
|
||||
|
||||
- `MimirComplexContourRuntimeOptions`: selected witness profile, calibration
|
||||
schedule start, and reference/candidate search radii.
|
||||
- `MimirComplexContourRuntimeAnalyzer`: extracts Float32 mono windows from
|
||||
`MimirRollingStreamBuffer`, maps the current runtime clock into the
|
||||
configured bioacoustic witness timeline, runs `MimirComplexContourMatchedFilterBank`
|
||||
on reference and candidate windows, applies any loaded path channel model, and
|
||||
emits `MimirAudioSynchronizationReport` records with `evidence=complex-contour`.
|
||||
|
||||
Invariant:
|
||||
|
||||
- The live contour lane only runs when explicitly enabled. When enabled, the
|
||||
runtime emitter and contour analyzer share the same contestant profile instead
|
||||
of learning one song and playing another.
|
||||
|
||||
### `MimirComplexContourChannelModelDocument.cs`
|
||||
|
||||
Owns:
|
||||
|
||||
- Runtime loading and source-path lookup for the persisted complex contour
|
||||
channel model.
|
||||
|
||||
Blocks:
|
||||
|
||||
- `MimirComplexContourChannelModelDocument`: schema, provenance, and path list.
|
||||
- `MimirComplexContourPathChannelModel`: ASIO reference/candidate channel pair,
|
||||
usable band corrections, reflection taps, reliability, and conversion to
|
||||
`MimirDirectPathChannelModel`.
|
||||
|
||||
Invariant:
|
||||
|
||||
- Persisted calibration is path-scoped. A model learned for
|
||||
`asio-ch2->asio-ch1@192000` cannot silently correct another source pair.
|
||||
|
||||
## Stage 9: Chirp-Bin Reference Timeline
|
||||
|
||||
### `MimirChirpBinTimeline.cs`
|
||||
|
|
|
|||
Loading…
Reference in a new issue