Persist complex contour channel replay
This commit is contained in:
parent
cbdd176610
commit
cdaef8b0ad
7 changed files with 753 additions and 31 deletions
434
calibration/bioacoustic/complex-contour-replay-panel.json
Normal file
434
calibration/bioacoustic/complex-contour-replay-panel.json
Normal file
|
|
@ -0,0 +1,434 @@
|
|||
{
|
||||
"Schema": "mimir.bioacoustic.complex-contour-replay.v1",
|
||||
"CreatedUtc": "2026-05-25T00:23:48.2689725+00:00",
|
||||
"Cases": [
|
||||
{
|
||||
"CaseId": "stored-shotgun",
|
||||
"InputPath": "artifacts/asio/scarlett-canary-packet-anchor-rich-192k-f32.raw",
|
||||
"SampleRate": 192000,
|
||||
"ReferenceChannel": 2,
|
||||
"CandidateChannel": 1,
|
||||
"PredictedDelaySamples": 534.343605,
|
||||
"DelaySamples": 533.2185601809787,
|
||||
"DelayMicroseconds": 2777.180000942597,
|
||||
"PredictionErrorSamples": -1.1250448190213547,
|
||||
"PredictionErrorMicroseconds": -5.859608432402889,
|
||||
"Confidence": 0.00823816403932344,
|
||||
"DirectHits": 25,
|
||||
"MeanAbsoluteErrorSamples": 2.7136531554923558,
|
||||
"MeanAbsolutePhaseErrorRadians": 0.6165969596331552,
|
||||
"ReferenceHits": 1480,
|
||||
"CandidateHits": 1480,
|
||||
"ReflectionTaps": [
|
||||
{
|
||||
"DelaySamples": 539.6441868064883,
|
||||
"RelativeDelaySamples": 6.425626625509608,
|
||||
"Weight": 2.7636509916792984,
|
||||
"HitCount": 13
|
||||
},
|
||||
{
|
||||
"DelaySamples": 547.6549327409579,
|
||||
"RelativeDelaySamples": 14.43637255997919,
|
||||
"Weight": 2.488522688357785,
|
||||
"HitCount": 15
|
||||
},
|
||||
{
|
||||
"DelaySamples": 553.2648429511569,
|
||||
"RelativeDelaySamples": 20.04628277017821,
|
||||
"Weight": 3.593918351092196,
|
||||
"HitCount": 21
|
||||
},
|
||||
{
|
||||
"DelaySamples": 559.148192957002,
|
||||
"RelativeDelaySamples": 25.929632776023368,
|
||||
"Weight": 3.240498636869736,
|
||||
"HitCount": 18
|
||||
},
|
||||
{
|
||||
"DelaySamples": 566.4000454288094,
|
||||
"RelativeDelaySamples": 33.18148524783078,
|
||||
"Weight": 2.516945258865417,
|
||||
"HitCount": 14
|
||||
},
|
||||
{
|
||||
"DelaySamples": 573.4958297069426,
|
||||
"RelativeDelaySamples": 40.2772695259639,
|
||||
"Weight": 4.4279350790902425,
|
||||
"HitCount": 20
|
||||
}
|
||||
],
|
||||
"FirstReflectionSamples": 6.425626625509608,
|
||||
"StrongestBands": [
|
||||
{
|
||||
"CenterHz": 6750,
|
||||
"Weight": 1.2699300283963697,
|
||||
"DelayResidualSamples": 2.5673189716570537,
|
||||
"PhaseResidualRadians": 0.5658813934187334
|
||||
},
|
||||
{
|
||||
"CenterHz": 8750,
|
||||
"Weight": 1.2568192590391993,
|
||||
"DelayResidualSamples": -0.4597260852506658,
|
||||
"PhaseResidualRadians": -0.12999969607089684
|
||||
},
|
||||
{
|
||||
"CenterHz": 9500,
|
||||
"Weight": 1.027566709608703,
|
||||
"DelayResidualSamples": 1.2838263536332217,
|
||||
"PhaseResidualRadians": 0.3950579393566654
|
||||
},
|
||||
{
|
||||
"CenterHz": 3250,
|
||||
"Weight": 0.7947593597178807,
|
||||
"DelayResidualSamples": -3.765228895337047,
|
||||
"PhaseResidualRadians": -0.3894062673999493
|
||||
},
|
||||
{
|
||||
"CenterHz": 3500,
|
||||
"Weight": 0.7529168073230323,
|
||||
"DelayResidualSamples": -4.625383934838002,
|
||||
"PhaseResidualRadians": -0.5149730771327364
|
||||
},
|
||||
{
|
||||
"CenterHz": 13250,
|
||||
"Weight": 0.6737108279691784,
|
||||
"DelayResidualSamples": -2.4168494062876826,
|
||||
"PhaseResidualRadians": -1.0485938214652033
|
||||
},
|
||||
{
|
||||
"CenterHz": 8500,
|
||||
"Weight": 0.6015228093118099,
|
||||
"DelayResidualSamples": 1.1707146663913026,
|
||||
"PhaseResidualRadians": 0.33160115736680457
|
||||
},
|
||||
{
|
||||
"CenterHz": 6500,
|
||||
"Weight": 0.47037755462147757,
|
||||
"DelayResidualSamples": 0.8667391978571636,
|
||||
"PhaseResidualRadians": 0.18091929609672733
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"CaseId": "stored-cardioid",
|
||||
"InputPath": "artifacts/asio/scarlett-canary-packet-anchor-rich-192k-f32.raw",
|
||||
"SampleRate": 192000,
|
||||
"ReferenceChannel": 2,
|
||||
"CandidateChannel": 0,
|
||||
"PredictedDelaySamples": 839.071083,
|
||||
"DelaySamples": 836.0342888517965,
|
||||
"DelayMicroseconds": 4354.34525443644,
|
||||
"PredictionErrorSamples": -3.036794148203512,
|
||||
"PredictionErrorMicroseconds": -15.81663618855996,
|
||||
"Confidence": 0.003921422554117446,
|
||||
"DirectHits": 16,
|
||||
"MeanAbsoluteErrorSamples": 2.846774242629788,
|
||||
"MeanAbsolutePhaseErrorRadians": 0.6868608276516036,
|
||||
"ReferenceHits": 1480,
|
||||
"CandidateHits": 1480,
|
||||
"ReflectionTaps": [
|
||||
{
|
||||
"DelaySamples": 844.1618851672207,
|
||||
"RelativeDelaySamples": 8.12759631542417,
|
||||
"Weight": 4.8250702717489125,
|
||||
"HitCount": 21
|
||||
},
|
||||
{
|
||||
"DelaySamples": 850.7317822184913,
|
||||
"RelativeDelaySamples": 14.697493366694744,
|
||||
"Weight": 4.5217613643705,
|
||||
"HitCount": 19
|
||||
},
|
||||
{
|
||||
"DelaySamples": 857.5061119358373,
|
||||
"RelativeDelaySamples": 21.471823084040807,
|
||||
"Weight": 2.8858348388973427,
|
||||
"HitCount": 15
|
||||
},
|
||||
{
|
||||
"DelaySamples": 864.1015151892855,
|
||||
"RelativeDelaySamples": 28.067226337488933,
|
||||
"Weight": 3.6214891746490743,
|
||||
"HitCount": 18
|
||||
},
|
||||
{
|
||||
"DelaySamples": 869.2271197231086,
|
||||
"RelativeDelaySamples": 33.192830871312026,
|
||||
"Weight": 4.676505258451089,
|
||||
"HitCount": 25
|
||||
},
|
||||
{
|
||||
"DelaySamples": 875.7564494391394,
|
||||
"RelativeDelaySamples": 39.72216058734284,
|
||||
"Weight": 2.7978942549958385,
|
||||
"HitCount": 17
|
||||
}
|
||||
],
|
||||
"FirstReflectionSamples": 8.12759631542417,
|
||||
"StrongestBands": [
|
||||
{
|
||||
"CenterHz": 3500,
|
||||
"Weight": 1.4678635457303353,
|
||||
"DelayResidualSamples": 0.10319879643340892,
|
||||
"PhaseResidualRadians": 0.013162251967709516
|
||||
},
|
||||
{
|
||||
"CenterHz": 6250,
|
||||
"Weight": 0.595616635929512,
|
||||
"DelayResidualSamples": 0.6124036977257589,
|
||||
"PhaseResidualRadians": 0.1271354391988944
|
||||
},
|
||||
{
|
||||
"CenterHz": 13000,
|
||||
"Weight": 0.5567561239589848,
|
||||
"DelayResidualSamples": 2.6753802477024133,
|
||||
"PhaseResidualRadians": 1.1449354974851138
|
||||
},
|
||||
{
|
||||
"CenterHz": 7250,
|
||||
"Weight": 0.44458926425684897,
|
||||
"DelayResidualSamples": -0.4646425397950185,
|
||||
"PhaseResidualRadians": -0.11029550531251985
|
||||
},
|
||||
{
|
||||
"CenterHz": 9500,
|
||||
"Weight": 0.4068961583884891,
|
||||
"DelayResidualSamples": -1.4174391923665974,
|
||||
"PhaseResidualRadians": -0.43593239097651637
|
||||
},
|
||||
{
|
||||
"CenterHz": 6750,
|
||||
"Weight": 0.3710780968347314,
|
||||
"DelayResidualSamples": -2.182853898329963,
|
||||
"PhaseResidualRadians": -0.477976049907922
|
||||
},
|
||||
{
|
||||
"CenterHz": 9250,
|
||||
"Weight": 0.23665017208058042,
|
||||
"DelayResidualSamples": 2.823144216376767,
|
||||
"PhaseResidualRadians": 0.8534581210981982
|
||||
},
|
||||
{
|
||||
"CenterHz": 6000,
|
||||
"Weight": 0.20029070346773176,
|
||||
"DelayResidualSamples": 5.932327618452064,
|
||||
"PhaseResidualRadians": 1.1557056318509606
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"CaseId": "fresh-shotgun",
|
||||
"InputPath": "artifacts/asio/scarlett-canary-packet-anchor-rich-latest-192k-f32.raw",
|
||||
"SampleRate": 192000,
|
||||
"ReferenceChannel": 2,
|
||||
"CandidateChannel": 1,
|
||||
"PredictedDelaySamples": 544.244999,
|
||||
"DelaySamples": 545.6364528449783,
|
||||
"DelayMicroseconds": 2841.8565252342623,
|
||||
"PredictionErrorSamples": 1.3914538449782867,
|
||||
"PredictionErrorMicroseconds": 7.247155442595243,
|
||||
"Confidence": 0.0032861669060763625,
|
||||
"DirectHits": 15,
|
||||
"MeanAbsoluteErrorSamples": 3.516897994416609,
|
||||
"MeanAbsolutePhaseErrorRadians": 0.8524654297414582,
|
||||
"ReferenceHits": 1480,
|
||||
"CandidateHits": 1480,
|
||||
"ReflectionTaps": [
|
||||
{
|
||||
"DelaySamples": 551.8370237902838,
|
||||
"RelativeDelaySamples": 6.200570945305458,
|
||||
"Weight": 5.9283970106484825,
|
||||
"HitCount": 33
|
||||
},
|
||||
{
|
||||
"DelaySamples": 557.5941765661034,
|
||||
"RelativeDelaySamples": 11.957723721125149,
|
||||
"Weight": 3.654548186749682,
|
||||
"HitCount": 22
|
||||
},
|
||||
{
|
||||
"DelaySamples": 565.124217891999,
|
||||
"RelativeDelaySamples": 19.48776504702073,
|
||||
"Weight": 2.487991917049385,
|
||||
"HitCount": 15
|
||||
},
|
||||
{
|
||||
"DelaySamples": 571.9794148942395,
|
||||
"RelativeDelaySamples": 26.342962049261246,
|
||||
"Weight": 2.8929050468185804,
|
||||
"HitCount": 14
|
||||
},
|
||||
{
|
||||
"DelaySamples": 577.9526421867643,
|
||||
"RelativeDelaySamples": 32.31618934178596,
|
||||
"Weight": 2.9495509101610176,
|
||||
"HitCount": 14
|
||||
},
|
||||
{
|
||||
"DelaySamples": 583.8368447411017,
|
||||
"RelativeDelaySamples": 38.20039189612339,
|
||||
"Weight": 4.653054173083655,
|
||||
"HitCount": 19
|
||||
}
|
||||
],
|
||||
"FirstReflectionSamples": 6.200570945305458,
|
||||
"StrongestBands": [
|
||||
{
|
||||
"CenterHz": 6750,
|
||||
"Weight": 2.1446167112529992,
|
||||
"DelayResidualSamples": 3.3535761936586694,
|
||||
"PhaseResidualRadians": 0.7403126376512428
|
||||
},
|
||||
{
|
||||
"CenterHz": 7000,
|
||||
"Weight": 0.9863738950334722,
|
||||
"DelayResidualSamples": -4.3123794157954585,
|
||||
"PhaseResidualRadians": -0.9788777422159413
|
||||
},
|
||||
{
|
||||
"CenterHz": 6500,
|
||||
"Weight": 0.7859796833175395,
|
||||
"DelayResidualSamples": 4.54702053502405,
|
||||
"PhaseResidualRadians": 0.9622868397785674
|
||||
},
|
||||
{
|
||||
"CenterHz": 9250,
|
||||
"Weight": 0.7529325316166473,
|
||||
"DelayResidualSamples": 1.467213791062176,
|
||||
"PhaseResidualRadians": 0.440377835686411
|
||||
},
|
||||
{
|
||||
"CenterHz": 7500,
|
||||
"Weight": 0.36006454004405286,
|
||||
"DelayResidualSamples": -2.2281848131519837,
|
||||
"PhaseResidualRadians": -0.5389168818164407
|
||||
},
|
||||
{
|
||||
"CenterHz": 9750,
|
||||
"Weight": 0.35135027105121286,
|
||||
"DelayResidualSamples": 0.5850716901119313,
|
||||
"PhaseResidualRadians": 0.18792002661100599
|
||||
},
|
||||
{
|
||||
"CenterHz": 13750,
|
||||
"Weight": 0.3341554524774217,
|
||||
"DelayResidualSamples": -1.965213816233927,
|
||||
"PhaseResidualRadians": -0.885265020371404
|
||||
},
|
||||
{
|
||||
"CenterHz": 20250,
|
||||
"Weight": 0.31148893481945145,
|
||||
"DelayResidualSamples": -1.9652138109995578,
|
||||
"PhaseResidualRadians": -1.29593222952682
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"CaseId": "fresh-cardioid",
|
||||
"InputPath": "artifacts/asio/scarlett-canary-packet-anchor-rich-latest-192k-f32.raw",
|
||||
"SampleRate": 192000,
|
||||
"ReferenceChannel": 2,
|
||||
"CandidateChannel": 0,
|
||||
"PredictedDelaySamples": 781.490952,
|
||||
"DelaySamples": 783.2119218444809,
|
||||
"DelayMicroseconds": 4079.2287596066712,
|
||||
"PredictionErrorSamples": 1.7209698444809192,
|
||||
"PredictionErrorMicroseconds": 8.963384606671454,
|
||||
"Confidence": 0.004817015390839313,
|
||||
"DirectHits": 16,
|
||||
"MeanAbsoluteErrorSamples": 2.9884960846911293,
|
||||
"MeanAbsolutePhaseErrorRadians": 0.6570230350323284,
|
||||
"ReferenceHits": 1480,
|
||||
"CandidateHits": 1480,
|
||||
"ReflectionTaps": [
|
||||
{
|
||||
"DelaySamples": 795.340641996421,
|
||||
"RelativeDelaySamples": 12.128720151940115,
|
||||
"Weight": 2.308476624587432,
|
||||
"HitCount": 10
|
||||
},
|
||||
{
|
||||
"DelaySamples": 803.5962134433519,
|
||||
"RelativeDelaySamples": 20.38429159887096,
|
||||
"Weight": 1.8612449619047005,
|
||||
"HitCount": 10
|
||||
},
|
||||
{
|
||||
"DelaySamples": 806.5030392153459,
|
||||
"RelativeDelaySamples": 23.29111737086498,
|
||||
"Weight": 0.989184398715797,
|
||||
"HitCount": 7
|
||||
},
|
||||
{
|
||||
"DelaySamples": 814.4379172478136,
|
||||
"RelativeDelaySamples": 31.225995403332718,
|
||||
"Weight": 3.0550451681607846,
|
||||
"HitCount": 16
|
||||
},
|
||||
{
|
||||
"DelaySamples": 819.9983616929446,
|
||||
"RelativeDelaySamples": 36.786439848463715,
|
||||
"Weight": 2.9347024356629237,
|
||||
"HitCount": 12
|
||||
},
|
||||
{
|
||||
"DelaySamples": 827.1903867395396,
|
||||
"RelativeDelaySamples": 43.978464895058664,
|
||||
"Weight": 2.132993184563086,
|
||||
"HitCount": 15
|
||||
}
|
||||
],
|
||||
"FirstReflectionSamples": 12.128720151940115,
|
||||
"StrongestBands": [
|
||||
{
|
||||
"CenterHz": 3500,
|
||||
"Weight": 1.0292158248138983,
|
||||
"DelayResidualSamples": -1.8683833694250642,
|
||||
"PhaseResidualRadians": -0.2160553650846187
|
||||
},
|
||||
{
|
||||
"CenterHz": 3250,
|
||||
"Weight": 0.9689156979351102,
|
||||
"DelayResidualSamples": 2.367757432999856,
|
||||
"PhaseResidualRadians": 0.2591088800405311
|
||||
},
|
||||
{
|
||||
"CenterHz": 3750,
|
||||
"Weight": 0.8257896687014397,
|
||||
"DelayResidualSamples": 0.7737901147281051,
|
||||
"PhaseResidualRadians": 0.09485471658946629
|
||||
},
|
||||
{
|
||||
"CenterHz": 3000,
|
||||
"Weight": 0.7114835803280036,
|
||||
"DelayResidualSamples": -3.860572966754169,
|
||||
"PhaseResidualRadians": -0.3840924303579634
|
||||
},
|
||||
{
|
||||
"CenterHz": 2750,
|
||||
"Weight": 0.6891263688332048,
|
||||
"DelayResidualSamples": -2.0878846225489225,
|
||||
"PhaseResidualRadians": -0.1926987492556257
|
||||
},
|
||||
{
|
||||
"CenterHz": 13500,
|
||||
"Weight": 0.4537545008959113,
|
||||
"DelayResidualSamples": 4.8576686994292855,
|
||||
"PhaseResidualRadians": 2.1472990646038803
|
||||
},
|
||||
{
|
||||
"CenterHz": 9000,
|
||||
"Weight": 0.3377853536497608,
|
||||
"DelayResidualSamples": 2.4170798183239413,
|
||||
"PhaseResidualRadians": 0.7163738239152257
|
||||
},
|
||||
{
|
||||
"CenterHz": 14500,
|
||||
"Weight": 0.2755942546185756,
|
||||
"DelayResidualSamples": 4.517622003996394,
|
||||
"PhaseResidualRadians": 2.1315131125108575
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -168,7 +168,15 @@ improves loopback but not the physical mics, which means anchor observability is
|
|||
now present and anchor survivability is the next design problem. The complex
|
||||
contour tracker now runs against stored Scarlett ASIO captures with seeded path
|
||||
hypotheses: stored/fresh shotgun estimates land within about `5.860 us` and
|
||||
`7.247 us` of the existing path fit, while stored/fresh cardioid estimates land
|
||||
within about `15.817 us` and `8.963 us`. Confidence remains low because the
|
||||
`7.247 us` of the existing path fit, while stored/fresh cardioid estimates land
|
||||
within about `15.817 us` and `8.963 us`. Confidence remains low because the
|
||||
current matched-filter bank exposes reflection taps but does not yet fit a full
|
||||
phase/group-delay channel surface.
|
||||
The tracker now emits per-band delay and phase residual observations plus a
|
||||
`MimirDirectPathChannelModel` correction surface. That model is deliberately not
|
||||
treated as live truth from one window; it exists so calibration/tracking can
|
||||
learn stable path corrections across time instead of overfitting the current
|
||||
reflection field.
|
||||
`--complex-contour-replay-panel` persists this measurement surface to
|
||||
`calibration/bioacoustic/complex-contour-replay-panel.json` for regression and
|
||||
path-learning work.
|
||||
|
|
|
|||
|
|
@ -252,7 +252,12 @@ clusters as reflection taps. Synthetic 192 kHz reflection smoke currently lands
|
|||
about 5.249 us from the expected delay; stored Scarlett shotgun runs land within
|
||||
about 5.860 us and 7.247 us of the seeded path fits, while cardioid runs land
|
||||
within about 15.817 us and 8.963 us. This is the correct receiver shape, but
|
||||
not yet the final phase/group-delay channel model.
|
||||
not yet the final phase/group-delay channel model. The tracker now emits
|
||||
per-band delay/phase residual observations and has a
|
||||
`MimirDirectPathChannelModel` correction surface for later multi-window
|
||||
calibration; one-window self-correction is not allowed to become authority.
|
||||
`calibration/bioacoustic/complex-contour-replay-panel.json` is the current
|
||||
persisted receipt for this surface across stored/fresh shotgun/cardioid cases.
|
||||
The first actuator proof now exists: `faust/mimir_alignment_actuator.dsp` owns
|
||||
six channels of bounded fractional delay/gain controls for Faust/native DSP,
|
||||
and `Mimir.BufferSmoke --bioacoustic-actuator-self-test --sample-rate 48000
|
||||
|
|
|
|||
|
|
@ -190,6 +190,12 @@ if (args.Any(arg => string.Equals(arg, "--complex-contour-asio-f32", StringCompa
|
|||
ParseStringOption(args, "--song", MimirBioacousticContestants.CanaryPacketTrill.Id));
|
||||
}
|
||||
|
||||
if (args.Any(arg => string.Equals(arg, "--complex-contour-replay-panel", StringComparison.OrdinalIgnoreCase)))
|
||||
{
|
||||
return RunComplexContourReplayPanel(
|
||||
ParseStringOption(args, "--output", "calibration/bioacoustic/complex-contour-replay-panel.json"));
|
||||
}
|
||||
|
||||
if (args.Any(arg => string.Equals(arg, "--calibrate-contestant-asio-f32", StringComparison.OrdinalIgnoreCase)))
|
||||
{
|
||||
return CalibrateContestantAsioFloat32(
|
||||
|
|
@ -1727,11 +1733,49 @@ static int AnalyzeComplexContourAsioFloat32(
|
|||
double scheduleOffsetSamples,
|
||||
double predictedDelaySamples,
|
||||
string songId)
|
||||
{
|
||||
var result = EstimateComplexContourAsioFloat32(
|
||||
inputPath,
|
||||
sampleRate,
|
||||
channels,
|
||||
referenceChannel,
|
||||
candidateChannel,
|
||||
seconds,
|
||||
scheduleOffsetSamples,
|
||||
predictedDelaySamples,
|
||||
songId);
|
||||
if (result == null)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
var bands = string.Join(",", result.StrongestBands.Select(group =>
|
||||
$"{group.CenterHz:0}Hz:{group.DelayResidualSamples:+0.00;-0.00;0.00}samp/{group.PhaseResidualRadians:+0.00;-0.00;0.00}rad"));
|
||||
Console.WriteLine(
|
||||
$"complex-contour-asio-f32 input={result.InputPath} reference=asio-ch{result.ReferenceChannel} candidate=asio-ch{result.CandidateChannel} " +
|
||||
$"delaySamples={result.DelaySamples:0.000000} delayUs={result.DelayMicroseconds:0.000} " +
|
||||
$"predictedDelaySamples={result.PredictedDelaySamples:0.000000} predictionErrorSamples={result.PredictionErrorSamples:0.000000} predictionErrorUs={result.PredictionErrorMicroseconds:0.000} " +
|
||||
$"confidence={result.Confidence:0.000} directHits={result.DirectHits} maeSamples={result.MeanAbsoluteErrorSamples:0.000000} phaseMaeRad={result.MeanAbsolutePhaseErrorRadians:0.000} " +
|
||||
$"referenceHits={result.ReferenceHits} candidateHits={result.CandidateHits} reflectionTaps={result.ReflectionTaps.Length} " +
|
||||
$"firstReflectionSamples={result.FirstReflectionSamples:0.000} bands={bands}");
|
||||
return 0;
|
||||
}
|
||||
|
||||
static ComplexContourReplayResult? EstimateComplexContourAsioFloat32(
|
||||
string inputPath,
|
||||
int sampleRate,
|
||||
int channels,
|
||||
int referenceChannel,
|
||||
int candidateChannel,
|
||||
double seconds,
|
||||
double scheduleOffsetSamples,
|
||||
double predictedDelaySamples,
|
||||
string songId)
|
||||
{
|
||||
if (!File.Exists(inputPath))
|
||||
{
|
||||
Console.Error.WriteLine($"complex-contour ASIO analysis failed: input not found: {inputPath}");
|
||||
return 1;
|
||||
return null;
|
||||
}
|
||||
|
||||
var profile = MimirBioacousticContestants.BuiltIn.FirstOrDefault(profile =>
|
||||
|
|
@ -1739,14 +1783,14 @@ static int AnalyzeComplexContourAsioFloat32(
|
|||
if (profile == null)
|
||||
{
|
||||
Console.Error.WriteLine($"complex-contour ASIO analysis failed: unknown song '{songId}'");
|
||||
return 1;
|
||||
return null;
|
||||
}
|
||||
|
||||
if (referenceChannel < 0 || referenceChannel >= channels ||
|
||||
candidateChannel < 0 || candidateChannel >= channels)
|
||||
{
|
||||
Console.Error.WriteLine("complex-contour ASIO analysis failed: channel index outside capture channel count");
|
||||
return 1;
|
||||
return null;
|
||||
}
|
||||
|
||||
var channelSamples = ReadInterleavedFloat32(inputPath, channels, out var frameCount);
|
||||
|
|
@ -1766,26 +1810,122 @@ static int AnalyzeComplexContourAsioFloat32(
|
|||
eventIndices,
|
||||
scheduleOffsetSamples + predictedDelaySamples,
|
||||
Math.Max(48, sampleRate / 900));
|
||||
var tracker = new MimirDirectPathTracker(sampleRate);
|
||||
var estimate = tracker.Update(referenceHits, candidateHits, predictedDelaySamples);
|
||||
var estimate = new MimirDirectPathTracker(sampleRate).Update(referenceHits, candidateHits, predictedDelaySamples);
|
||||
if (estimate == null)
|
||||
{
|
||||
Console.WriteLine(
|
||||
$"complex-contour-asio-f32 status=no-lock input={inputPath} reference=asio-ch{referenceChannel} candidate=asio-ch{candidateChannel} " +
|
||||
$"referenceHits={referenceHits.Count} candidateHits={candidateHits.Count} predictedDelaySamples={predictedDelaySamples:0.000}");
|
||||
return 1;
|
||||
return null;
|
||||
}
|
||||
|
||||
var strongestBands = estimate.BandObservations
|
||||
.GroupBy(observation => Math.Round(observation.CenterHz / 250.0) * 250.0)
|
||||
.Select(group =>
|
||||
{
|
||||
var totalWeight = Math.Max(1.0e-9, group.Sum(observation => Math.Max(observation.Weight, 1.0e-9)));
|
||||
return new ComplexContourBandResidual(
|
||||
group.Key,
|
||||
totalWeight,
|
||||
group.Sum(observation => observation.DelayResidualSamples * Math.Max(observation.Weight, 1.0e-9)) / totalWeight,
|
||||
group.Sum(observation => observation.PhaseResidualRadians * Math.Max(observation.Weight, 1.0e-9)) / totalWeight);
|
||||
})
|
||||
.OrderByDescending(group => group.Weight)
|
||||
.Take(8)
|
||||
.ToArray();
|
||||
var predictionError = estimate.DelaySamples - predictedDelaySamples;
|
||||
var firstReflection = estimate.ReflectionTaps.FirstOrDefault();
|
||||
Console.WriteLine(
|
||||
$"complex-contour-asio-f32 input={inputPath} reference=asio-ch{referenceChannel} candidate=asio-ch{candidateChannel} " +
|
||||
$"delaySamples={estimate.DelaySamples:0.000000} delayUs={estimate.DelayMicroseconds:0.000} " +
|
||||
$"predictedDelaySamples={predictedDelaySamples:0.000000} predictionErrorSamples={predictionError:0.000000} predictionErrorUs={predictionError * 1_000_000.0 / sampleRate:0.000} " +
|
||||
$"confidence={estimate.Confidence:0.000} directHits={estimate.DirectHitCount} maeSamples={estimate.MeanAbsoluteErrorSamples:0.000000} " +
|
||||
$"referenceHits={referenceHits.Count} candidateHits={candidateHits.Count} reflectionTaps={estimate.ReflectionTaps.Count} " +
|
||||
$"firstReflectionSamples={(firstReflection?.RelativeDelaySamples ?? double.NaN):0.000}");
|
||||
return 0;
|
||||
return new ComplexContourReplayResult(
|
||||
"",
|
||||
inputPath,
|
||||
sampleRate,
|
||||
referenceChannel,
|
||||
candidateChannel,
|
||||
predictedDelaySamples,
|
||||
estimate.DelaySamples,
|
||||
estimate.DelayMicroseconds,
|
||||
predictionError,
|
||||
predictionError * 1_000_000.0 / sampleRate,
|
||||
estimate.Confidence,
|
||||
estimate.DirectHitCount,
|
||||
estimate.MeanAbsoluteErrorSamples,
|
||||
estimate.MeanAbsolutePhaseErrorRadians,
|
||||
referenceHits.Count,
|
||||
candidateHits.Count,
|
||||
estimate.ReflectionTaps.ToArray(),
|
||||
estimate.ReflectionTaps.FirstOrDefault()?.RelativeDelaySamples ?? double.NaN,
|
||||
strongestBands);
|
||||
}
|
||||
|
||||
static int RunComplexContourReplayPanel(string outputPath)
|
||||
{
|
||||
var cases = new[]
|
||||
{
|
||||
new ComplexContourReplayCase(
|
||||
"stored-shotgun",
|
||||
"artifacts/asio/scarlett-canary-packet-anchor-rich-192k-f32.raw",
|
||||
CandidateChannel: 1,
|
||||
PredictedDelaySamples: 534.343605),
|
||||
new ComplexContourReplayCase(
|
||||
"stored-cardioid",
|
||||
"artifacts/asio/scarlett-canary-packet-anchor-rich-192k-f32.raw",
|
||||
CandidateChannel: 0,
|
||||
PredictedDelaySamples: 839.071083),
|
||||
new ComplexContourReplayCase(
|
||||
"fresh-shotgun",
|
||||
"artifacts/asio/scarlett-canary-packet-anchor-rich-latest-192k-f32.raw",
|
||||
CandidateChannel: 1,
|
||||
PredictedDelaySamples: 544.244999),
|
||||
new ComplexContourReplayCase(
|
||||
"fresh-cardioid",
|
||||
"artifacts/asio/scarlett-canary-packet-anchor-rich-latest-192k-f32.raw",
|
||||
CandidateChannel: 0,
|
||||
PredictedDelaySamples: 781.490952)
|
||||
};
|
||||
|
||||
var failures = 0;
|
||||
var results = new List<ComplexContourReplayResult>(cases.Length);
|
||||
foreach (var replayCase in cases)
|
||||
{
|
||||
Console.WriteLine($"complex-contour-panel case={replayCase.Id}");
|
||||
var result = EstimateComplexContourAsioFloat32(
|
||||
replayCase.InputPath,
|
||||
sampleRate: 192_000,
|
||||
channels: 4,
|
||||
referenceChannel: 2,
|
||||
replayCase.CandidateChannel,
|
||||
seconds: 4.0,
|
||||
scheduleOffsetSamples: 1623.0,
|
||||
replayCase.PredictedDelaySamples,
|
||||
MimirBioacousticContestants.CanaryPacketTrill.Id);
|
||||
if (result == null)
|
||||
{
|
||||
failures++;
|
||||
continue;
|
||||
}
|
||||
|
||||
results.Add(result with { CaseId = replayCase.Id });
|
||||
var bands = string.Join(",", result.StrongestBands.Take(4).Select(group =>
|
||||
$"{group.CenterHz:0}Hz:{group.DelayResidualSamples:+0.00;-0.00;0.00}samp/{group.PhaseResidualRadians:+0.00;-0.00;0.00}rad"));
|
||||
Console.WriteLine(
|
||||
$"complex-contour-asio-f32 input={result.InputPath} reference=asio-ch{result.ReferenceChannel} candidate=asio-ch{result.CandidateChannel} " +
|
||||
$"delaySamples={result.DelaySamples:0.000000} delayUs={result.DelayMicroseconds:0.000} " +
|
||||
$"predictedDelaySamples={result.PredictedDelaySamples:0.000000} predictionErrorSamples={result.PredictionErrorSamples:0.000000} predictionErrorUs={result.PredictionErrorMicroseconds:0.000} " +
|
||||
$"confidence={result.Confidence:0.000} directHits={result.DirectHits} maeSamples={result.MeanAbsoluteErrorSamples:0.000000} phaseMaeRad={result.MeanAbsolutePhaseErrorRadians:0.000} " +
|
||||
$"referenceHits={result.ReferenceHits} candidateHits={result.CandidateHits} reflectionTaps={result.ReflectionTaps.Length} " +
|
||||
$"firstReflectionSamples={result.FirstReflectionSamples:0.000} bands={bands}");
|
||||
}
|
||||
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(outputPath) ?? ".");
|
||||
File.WriteAllText(
|
||||
outputPath,
|
||||
JsonSerializer.Serialize(
|
||||
new ComplexContourReplayPanelReceipt(
|
||||
"mimir.bioacoustic.complex-contour-replay.v1",
|
||||
DateTimeOffset.UtcNow,
|
||||
results.ToArray()),
|
||||
new JsonSerializerOptions { WriteIndented = true }));
|
||||
Console.WriteLine($"complex-contour-panel-receipt path={outputPath} cases={results.Count}");
|
||||
return failures == 0 ? 0 : 1;
|
||||
}
|
||||
|
||||
static int CalibrateContestantAsioFloat32(
|
||||
|
|
@ -4810,3 +4950,41 @@ public sealed record BioacousticPhysicalBandCalibration(
|
|||
double ExpectedEnergy,
|
||||
double Gain,
|
||||
bool Usable);
|
||||
|
||||
public sealed record ComplexContourReplayCase(
|
||||
string Id,
|
||||
string InputPath,
|
||||
int CandidateChannel,
|
||||
double PredictedDelaySamples);
|
||||
|
||||
public sealed record ComplexContourReplayPanelReceipt(
|
||||
string Schema,
|
||||
DateTimeOffset CreatedUtc,
|
||||
ComplexContourReplayResult[] Cases);
|
||||
|
||||
public sealed record ComplexContourReplayResult(
|
||||
string CaseId,
|
||||
string InputPath,
|
||||
int SampleRate,
|
||||
int ReferenceChannel,
|
||||
int CandidateChannel,
|
||||
double PredictedDelaySamples,
|
||||
double DelaySamples,
|
||||
double DelayMicroseconds,
|
||||
double PredictionErrorSamples,
|
||||
double PredictionErrorMicroseconds,
|
||||
double Confidence,
|
||||
int DirectHits,
|
||||
double MeanAbsoluteErrorSamples,
|
||||
double MeanAbsolutePhaseErrorRadians,
|
||||
int ReferenceHits,
|
||||
int CandidateHits,
|
||||
MimirAcousticReflectionTap[] ReflectionTaps,
|
||||
double FirstReflectionSamples,
|
||||
ComplexContourBandResidual[] StrongestBands);
|
||||
|
||||
public sealed record ComplexContourBandResidual(
|
||||
double CenterHz,
|
||||
double Weight,
|
||||
double DelayResidualSamples,
|
||||
double PhaseResidualRadians);
|
||||
|
|
|
|||
|
|
@ -27,14 +27,70 @@ public sealed record MimirAcousticReflectionTap(
|
|||
double Weight,
|
||||
int HitCount);
|
||||
|
||||
public sealed record MimirDirectPathBandObservation(
|
||||
double CenterHz,
|
||||
double Weight,
|
||||
double DelayResidualSamples,
|
||||
double PhaseResidualRadians);
|
||||
|
||||
public sealed record MimirDirectPathBandCorrection(
|
||||
double CenterHz,
|
||||
double DelayCorrectionSamples,
|
||||
double PhaseCorrectionRadians,
|
||||
double Weight);
|
||||
|
||||
public sealed record MimirDirectPathEstimate(
|
||||
double DelaySamples,
|
||||
double DelayMicroseconds,
|
||||
double Confidence,
|
||||
double MeanAbsoluteErrorSamples,
|
||||
double MeanAbsolutePhaseErrorRadians,
|
||||
int DirectHitCount,
|
||||
IReadOnlyList<MimirDirectPathBandObservation> BandObservations,
|
||||
IReadOnlyList<MimirAcousticReflectionTap> ReflectionTaps);
|
||||
|
||||
public sealed class MimirDirectPathChannelModel(IReadOnlyList<MimirDirectPathBandCorrection> corrections)
|
||||
{
|
||||
public IReadOnlyList<MimirDirectPathBandCorrection> Corrections { get; } = corrections;
|
||||
|
||||
public static MimirDirectPathChannelModel Empty { get; } = new([]);
|
||||
|
||||
public static MimirDirectPathChannelModel Learn(MimirDirectPathEstimate estimate, double binHz = 250.0)
|
||||
{
|
||||
var corrections = estimate.BandObservations
|
||||
.GroupBy(observation => Math.Round(observation.CenterHz / binHz) * binHz)
|
||||
.Select(group =>
|
||||
{
|
||||
var totalWeight = Math.Max(1.0e-9, group.Sum(observation => Math.Max(observation.Weight, 1.0e-9)));
|
||||
return new MimirDirectPathBandCorrection(
|
||||
group.Key,
|
||||
group.Sum(observation => observation.DelayResidualSamples * Math.Max(observation.Weight, 1.0e-9)) / totalWeight,
|
||||
group.Sum(observation => observation.PhaseResidualRadians * Math.Max(observation.Weight, 1.0e-9)) / totalWeight,
|
||||
totalWeight);
|
||||
})
|
||||
.Where(correction => correction.Weight > 0.0)
|
||||
.OrderBy(correction => correction.CenterHz)
|
||||
.ToArray();
|
||||
return new MimirDirectPathChannelModel(corrections);
|
||||
}
|
||||
|
||||
public double DelayCorrectionFor(double centerHz, double maxDistanceHz = 375.0)
|
||||
{
|
||||
if (Corrections.Count == 0)
|
||||
{
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
var nearest = Corrections
|
||||
.Select(correction => (Correction: correction, Distance: Math.Abs(correction.CenterHz - centerHz)))
|
||||
.OrderBy(pair => pair.Distance)
|
||||
.First();
|
||||
return nearest.Distance > maxDistanceHz
|
||||
? 0.0
|
||||
: nearest.Correction.DelayCorrectionSamples;
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class MimirComplexContourMatchedFilterBank(
|
||||
MimirBioacousticContestantRenderer renderer,
|
||||
int sampleRate,
|
||||
|
|
@ -241,6 +297,7 @@ public sealed record MimirDirectPathTrackerOptions(
|
|||
double TrackingLoopBandwidth = 0.20,
|
||||
double MaximumTrackingCorrectionSamples = 12.0,
|
||||
double PredictionGateSamples = 10.0,
|
||||
MimirDirectPathChannelModel? ChannelModel = null,
|
||||
int MinimumDirectHits = 8);
|
||||
|
||||
public sealed class MimirDirectPathTracker(
|
||||
|
|
@ -260,7 +317,7 @@ public sealed class MimirDirectPathTracker(
|
|||
.Where(hit => hit.Rank == 0)
|
||||
.GroupBy(hit => (hit.EventIndex, hit.Kind, hit.SyllableIndex))
|
||||
.ToDictionary(group => group.Key, group => group.OrderByDescending(hit => hit.Score).First());
|
||||
var deltas = new List<(double Delay, double Weight)>();
|
||||
var observations = new List<MimirDirectPathObservation>();
|
||||
foreach (var candidate in candidateHits)
|
||||
{
|
||||
if (!referenceByAnchor.TryGetValue((candidate.EventIndex, candidate.Kind, candidate.SyllableIndex), out var reference))
|
||||
|
|
@ -275,15 +332,21 @@ public sealed class MimirDirectPathTracker(
|
|||
? 0.0
|
||||
: phaseDelta * sampleRate / (Math.Tau * candidate.CenterHz);
|
||||
var maxPhaseCorrection = sampleRate / Math.Max(1.0, candidate.CenterHz) * 0.5;
|
||||
deltas.Add((sampleDelay + Math.Clamp(phaseDelay, -maxPhaseCorrection, maxPhaseCorrection), weight));
|
||||
var channelCorrection = (options.ChannelModel ?? MimirDirectPathChannelModel.Empty).DelayCorrectionFor(candidate.CenterHz);
|
||||
observations.Add(new MimirDirectPathObservation(
|
||||
sampleDelay + Math.Clamp(phaseDelay, -maxPhaseCorrection, maxPhaseCorrection) - channelCorrection,
|
||||
sampleDelay,
|
||||
phaseDelta,
|
||||
candidate.CenterHz,
|
||||
weight));
|
||||
}
|
||||
|
||||
if (deltas.Count < options.MinimumDirectHits)
|
||||
if (observations.Count < options.MinimumDirectHits)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var clusters = ClusterDelays(deltas);
|
||||
var clusters = ClusterDelays(observations);
|
||||
if (clusters.Length == 0)
|
||||
{
|
||||
return null;
|
||||
|
|
@ -320,15 +383,33 @@ public sealed class MimirDirectPathTracker(
|
|||
|
||||
delaySamples = updatedDelay;
|
||||
hasLock = true;
|
||||
var directResiduals = deltas
|
||||
.Where(delta => Math.Abs(delta.Delay - direct.Delay) <= options.DirectClusterRadiusSamples)
|
||||
var directResiduals = observations
|
||||
.Where(observation => Math.Abs(observation.Delay - direct.Delay) <= options.DirectClusterRadiusSamples)
|
||||
.ToArray();
|
||||
var totalWeight = Math.Max(1.0e-9, directResiduals.Sum(delta => Math.Max(delta.Weight, 1.0e-9)));
|
||||
var mae = directResiduals.Sum(delta => Math.Abs(delta.Delay - direct.Delay) * Math.Max(delta.Weight, 1.0e-9)) / totalWeight;
|
||||
var totalWeight = Math.Max(1.0e-9, directResiduals.Sum(observation => Math.Max(observation.Weight, 1.0e-9)));
|
||||
var mae = directResiduals.Sum(observation => Math.Abs(observation.Delay - direct.Delay) * Math.Max(observation.Weight, 1.0e-9)) / totalWeight;
|
||||
var bandObservations = directResiduals
|
||||
.Select(observation =>
|
||||
{
|
||||
var delayResidual = observation.Delay - direct.Delay;
|
||||
var phaseResidual = WrapRadians(observation.PhaseDeltaRadians -
|
||||
Math.Tau * observation.CenterHz * (direct.Delay - observation.SampleDelay) / sampleRate);
|
||||
return new MimirDirectPathBandObservation(
|
||||
observation.CenterHz,
|
||||
observation.Weight,
|
||||
delayResidual,
|
||||
phaseResidual);
|
||||
})
|
||||
.ToArray();
|
||||
var meanAbsolutePhaseError = bandObservations.Length == 0
|
||||
? 0.0
|
||||
: bandObservations.Sum(observation => Math.Abs(observation.PhaseResidualRadians) * Math.Max(observation.Weight, 1.0e-9)) /
|
||||
Math.Max(1.0e-9, bandObservations.Sum(observation => Math.Max(observation.Weight, 1.0e-9)));
|
||||
var confidence = Math.Clamp(
|
||||
direct.Weight / Math.Max(1.0e-9, clusters.Sum(cluster => cluster.Weight)) *
|
||||
Math.Clamp(direct.Count / 16.0, 0.0, 1.0) *
|
||||
(1.0 / (1.0 + mae / Math.Max(1.0, sampleRate * 0.00005))),
|
||||
(1.0 / (1.0 + mae / Math.Max(1.0, sampleRate * 0.00005))) *
|
||||
(1.0 / (1.0 + meanAbsolutePhaseError / 0.75)),
|
||||
0.0,
|
||||
1.0);
|
||||
var reflectionTaps = clusters
|
||||
|
|
@ -346,18 +427,20 @@ public sealed class MimirDirectPathTracker(
|
|||
updatedDelay * 1_000_000.0 / sampleRate,
|
||||
confidence,
|
||||
mae,
|
||||
meanAbsolutePhaseError,
|
||||
direct.Count,
|
||||
bandObservations,
|
||||
reflectionTaps);
|
||||
}
|
||||
|
||||
private MimirDelayCluster[] ClusterDelays(IReadOnlyList<(double Delay, double Weight)> deltas)
|
||||
private MimirDelayCluster[] ClusterDelays(IReadOnlyList<MimirDirectPathObservation> observations)
|
||||
{
|
||||
var sorted = deltas.OrderBy(delta => delta.Delay).ToArray();
|
||||
var sorted = observations.OrderBy(observation => observation.Delay).ToArray();
|
||||
var clusters = new List<MimirDelayCluster>();
|
||||
var index = 0;
|
||||
while (index < sorted.Length)
|
||||
{
|
||||
var members = new List<(double Delay, double Weight)> { sorted[index] };
|
||||
var members = new List<MimirDirectPathObservation> { sorted[index] };
|
||||
var end = index + 1;
|
||||
while (end < sorted.Length &&
|
||||
sorted[end].Delay - members[0].Delay <= options.DirectClusterRadiusSamples)
|
||||
|
|
@ -379,6 +462,13 @@ public sealed class MimirDirectPathTracker(
|
|||
|
||||
private sealed record MimirDelayCluster(double Delay, double Weight, int Count);
|
||||
|
||||
private sealed record MimirDirectPathObservation(
|
||||
double Delay,
|
||||
double SampleDelay,
|
||||
double PhaseDeltaRadians,
|
||||
double CenterHz,
|
||||
double Weight);
|
||||
|
||||
private static double WrapRadians(double radians)
|
||||
{
|
||||
while (radians <= -Math.PI)
|
||||
|
|
|
|||
|
|
@ -102,3 +102,5 @@
|
|||
{"ts": "2026-05-25T01:25:00+01:00", "type": "research", "status": "ok", "note": "Looked at open realtime DSP/sonar-adjacent systems after the recursive-fit rejection. liquid-dsp, an underwater acoustic modem using liquid-dsp, pyAPRiL passive radar, GNU Radio stream/tag synchronization, OpenTDS, Signalsmith DSP, Open Echo, and ahoi all point the same way: acquisition should use matched filters/ambiguity search; refinement should track complex phase, timing, SRO, and channel response; multipath should be modeled as later residual taps; and exact stream positions should be propagated as tags/state. Added research/sonar-dsp-recursive-refinement-2026-05-25.md. The next implementation cut should be a complex contour matched-filter bank plus direct-path acoustic tracker, not another raw waveform recursion pass."}
|
||||
{"ts": "2026-05-25T01:41:00+01:00", "type": "research", "status": "ok", "note": "Persisted the sonar/DSP source trail behind recursive refinement. Added research/sonar-dsp-recursive-refinement-2026-05-25/sources.md with per-source summaries and Mimir implementation implications, plus local mirrors under research/sonar-dsp-recursive-refinement-2026-05-25/mirrors/ for liquid-dsp, liquid-dsp releases, the acoustic modem PDF, pyAPRiL, GNU Radio correlate/tag docs, OpenTDS, Signalsmith DSP, Open Echo, and ahoi hardware overview."}
|
||||
{"ts": "2026-05-25T02:24:00+01:00", "type": "implementation", "status": "partial", "note": "Built the first sonar-shaped recursive refinement slice: MimirComplexContourMatchedFilterBank emits complex matched-filter contour-anchor hits with multiple candidate lobes, and MimirDirectPathTracker uses the current predicted path delay as authority, selects the coherent direct-path cluster inside that gate, and records later clusters as reflection taps. Synthetic reflection smoke passes: at 192 kHz with delay 693.5 samples and a louder reflection 116 samples later, estimate is 692.492189 samples (5.249 us error). Stored Scarlett ASIO receipts run through --complex-contour-asio-f32: shotgun path prediction errors are -5.860 us and +7.247 us; cardioid errors are -15.817 us and +8.963 us. This is a better receiver architecture, but low confidence and multi-sample MAE mean the full phase/group-delay channel model is still missing."}
|
||||
{"ts": "2026-05-25T02:42:00+01:00", "type": "implementation", "status": "partial", "note": "Extended the complex contour tracker with per-band phase/delay residual observations and a MimirDirectPathChannelModel correction surface. BufferSmoke replay panel now prints strongest band residuals and phase MAE: stored/fresh shotgun phase MAE is 0.617/0.852 rad, stored/fresh cardioid phase MAE is 0.687/0.657 rad. A same-window correction experiment improved one case but worsened others, so it was not promoted; channel correction must be learned across time/captures before it can influence live timing authority."}
|
||||
{"ts": "2026-05-25T02:53:00+01:00", "type": "verification", "status": "ok", "note": "Added persisted complex contour replay receipt generation. `dotnet run -c Release --no-build --project src/Mimir.BufferSmoke/Mimir.BufferSmoke.csproj -- --complex-contour-replay-panel --output calibration/bioacoustic/complex-contour-replay-panel.json` writes the four stored/fresh shotgun/cardioid cases with delay error, phase MAE, reflection taps, and strongest band residuals. Build passes and synthetic 192 kHz reflection smoke still reports 5.249 us error."}
|
||||
|
|
|
|||
|
|
@ -225,7 +225,12 @@ accepted_design:
|
|||
reflection smoke currently lands about 5.249 us from expected delay; stored
|
||||
Scarlett shotgun receipts land within about 5.860 us and 7.247 us of seeded
|
||||
path fits, while cardioid receipts land within about 15.817 us and 8.963 us.
|
||||
Low confidence is expected until phase/group-delay surfaces are learned.
|
||||
Low confidence is expected until phase/group-delay surfaces are learned. The
|
||||
tracker now exposes per-band delay/phase residual observations and a
|
||||
`MimirDirectPathChannelModel` correction surface for multi-window
|
||||
calibration; one-window self-correction is not live authority.
|
||||
`calibration/bioacoustic/complex-contour-replay-panel.json` persists the
|
||||
current four-case replay receipt.
|
||||
Acoustic robustness remains open.
|
||||
The old arbitrary-chirplet matcher is a diagnostic/reference artifact only,
|
||||
not the runtime hot path.
|
||||
|
|
|
|||
Loading…
Reference in a new issue