fix: fill line-timed lyrics as they play #139

Merged
joshuafhiggins merged 1 commits from t3/lyrics-line-sweep into main 2026-11-20 01:24:56 -05:00
Owner

Lyrics timed only by line, like ATM, never animated. The fill from #130/#138 runs over each line's words, and those lines had no word timing. On the test server, word-timed songs do fill: in headless Chrome, "Being this young is art" sweeps word by word.

parseLyrics now gives line-timed lines estimated words, spread over the line by character count at a rough singing pace (0.07s per character), never past the next line's start. synced still reports how the source was timed, so ranking which file's lyrics to keep is unchanged. Web and mobile both pick this up with no component changes.

Typecheck passes in web and mobile. I checked the estimates with a quick parse of sample LRC. Not yet checked in the apps.

Made by Claude Opus 5.5 in Claude Code (via T3 Code).

🤖 Generated with Claude Code

Lyrics timed only by line, like ATM, never animated. The fill from #130/#138 runs over each line's words, and those lines had no word timing. On the test server, word-timed songs do fill: in headless Chrome, "Being this young is art" sweeps word by word. `parseLyrics` now gives line-timed lines estimated words, spread over the line by character count at a rough singing pace (0.07s per character), never past the next line's start. `synced` still reports how the source was timed, so ranking which file's lyrics to keep is unchanged. Web and mobile both pick this up with no component changes. Typecheck passes in web and mobile. I checked the estimates with a quick parse of sample LRC. Not yet checked in the apps. Made by Claude Opus 5.5 in Claude Code (via T3 Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
joshuafhiggins added 1 commit 2026-11-20 01:22:01 -05:00
Only word-timed lyrics had words to fill, so line-timed songs never
animated. Their lines now get words spread over them by length.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
joshuafhiggins merged commit 1f04f62b44 into main 2026-11-20 01:24:56 -05:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: joshuafhiggins/otunes#139