Commit Graph
8 Commits
Author SHA1 Message Date
Lucas WintherandClaude Opus 5.5 99a1076547 fix(align): densify coarse fallback path; per-segment offset pooling; no degenerate first stretch
The coarse-path fallback now expands each 10 Hz step to five 50 Hz steps so its
diagonals still yield bar anchors; fine band widths are injectable to test it.
Offset pooling is clipped to the current segment, and auto anchors need
audioSec > 0 unless midiSec is 0. Tests: forced fallback, wrong manual anchor,
p90 bound; debug output gated behind ALIGN_DEBUG.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 06:57:47 +01:00
Lucas WintherandClaude Opus 5.5 8cad85e103 feat(align): automatic alignment and fit quality
Coarse (10 Hz) DTW per stretch between manual anchors, refined at 50 Hz in a
band that widens 0.5 -> 1 -> 2 s on unreachable end cells (coarse path as last
resort); one auto anchor per bar from median offsets of diagonal path steps.
Fit quality from raw-audio onset peaks vs warped scored-role MIDI onsets
(+-70 ms, 30 s windows, flagged on rate < 0.5 or median > 60 ms).
trackKeys moves to src/align/roles.ts (pure) and is re-exported by manifest.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-30 06:52:10 +01:00
Lucas WintherandClaude Sonnet 5.5 41e38cb03f feat(align): features and DTW
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-30 06:42:42 +01:00
Lucas WintherandClaude Sonnet 5.5 b614244e4d fix(align): render at 44.1k and resample; finite guard; pre-zero tests
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-30 06:38:31 +01:00
Lucas WintherandClaude Sonnet 5.5 63b32a488d feat(align): warped MIDI rendering and peaks
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-30 06:34:15 +01:00
Lucas WintherandClaude Haiku 5.5 ca5942956a fix(align): remove whole auto run between manual anchors on edit
Co-Authored-By: Claude Haiku 5.5 <[email protected]>
2026-10-30 06:30:48 +01:00
Lucas WintherandClaude Haiku 5.5 1ff29f94cd feat(align): warp model
Co-Authored-By: Claude Haiku 5.5 <[email protected]>
2026-10-30 06:29:58 +01:00
Lucas WintherandClaude Sonnet 5.5 e910036e67 feat(align): SMF parser, role guess, reference manifest
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-30 06:27:08 +01:00