Add dual mic coherence suppression

This commit is contained in:
Meta Vens 2026-06-01 04:14:35 +01:00
commit 324de581d4
7 changed files with 282 additions and 19 deletions

View file

@ -139,6 +139,15 @@ before selecting the coherent anchor path. If the measured path only leaves a
smaller alphabet, Mimir should use that reliable symbol set and raise the
sequence order so the timeline remains unique without pretending dead bands
still carry code.
The first concrete two-mic cancellation owner is
`MimirCalibratedAudioCompositeBuilder`: after fractional alignment and measured
band correction, it scores calibrated-band coherence across mics, suppresses
incoherent measured-band components, then performs the confidence/noise-weighted
sum. `Mimir.BufferSmoke --dual-mic-coherence-cancellation-smoke` proves the
contract on synthetic shotgun/cardioid witnesses: coherent shared tones survive,
a mic-local `3.52 kHz` interferer is suppressed, and SNR rises from `1.366 dB`
to `16.304 dB`. This is still the C# diagnostic/offline contract; Faust/native
DSP owns the production hot lane.
The synthetic invariant is
`dotnet run --project .\src\Mimir.BufferSmoke\Mimir.BufferSmoke.csproj -- --bioacoustic-self-test`;
it renders the bioacoustic timeline, decodes direct word anchors, and requires a

View file

@ -810,9 +810,13 @@ a named invariant that the native runtime cannot protect yet.
stem generation into Faust/native DSP. The C# diagnostic bridge now exists
as `MimirCalibratedAudioCompositeBuilder`: it consumes synchronization
states and measured band responses, emits a corrected composite plus scores,
and is proved by `--calibrated-audio-composite-smoke`. Treat that as the
contract and offline scorer for the native/Faust implementation, not as a
parallel live mixer authority. The next matching probe loop also exists as
and is proved by `--calibrated-audio-composite-smoke`. It now also scores
calibrated-band coherence and suppresses incoherent measured-band components
before summing; `--dual-mic-coherence-cancellation-smoke` proves the two-mic
case by cutting a mic-local 3.52 kHz interferer while preserving coherent
shared tones. Treat that as the contract and offline scorer for the
native/Faust implementation, not as a parallel live mixer authority. The
next matching probe loop also exists as
`MimirTargetedBioacousticProbePlanner`: residuals and mic pathology notes
select gain-bounded shaped probe bands for the bioacoustic renderer. Start
with the 192 kHz shotgun/cardioid pair; only widen to every connected mic