songmap + mv_solver: the music analysis behind WRITE's MV mode
Sandpies
46b34fe
Phase C's foundation, committed before the cards that use it.
songmap.py measures a song: tempo and bar grid, beat steadiness, section
boundaries, per-bar energy and chroma, sung regions and lyric lines.
mv_solver.solve() turns a song map plus sections into hop lengths that land on
bar lines, each a node label of 15 s or less, and says which joins are cuts
and which continue.
tools/check_songmap.py: 159 checks, hermetic -- no song files, no downloads,
no weights, 8 seconds. Added to check_all, so it runs with everything else.
Two results that shape how this is presented rather than being hidden:
- section detection is 4/9 on the headliner set, and 2/9 with listening. So
sections are SUGGESTIONS the user confirms or moves, never a silent
decision. The chat is the fix: 'the chorus starts at bar 17, not 21' is a
message and the card updates.
- the bar grid is the trustworthy part. That is what the MV cards lead with.
HEADLINER_SUMMARY.txt at the repo root carries the per-song nu…