Add synced lyrics display with LrcLib#2055
Open
guitaripod wants to merge 1 commit intostrawberrymusicplayer:masterfrom
Open
Add synced lyrics display with LrcLib#2055guitaripod wants to merge 1 commit intostrawberrymusicplayer:masterfrom
guitaripod wants to merge 1 commit intostrawberrymusicplayer:masterfrom
Conversation
99644d1 to
827459c
Compare
LrcLib already returns time-synced lyrics in its API response but Strawberry was discarding them and only using plain text. This change threads synced LRC data through the entire lyrics pipeline and displays it as a real-time scrolling lyrics view in the context panel. When synced lyrics are available, a SyncedLyricsWidget replaces the static text display. A 250ms timer polls the engine position and highlights the current line with smooth animated scrolling. Lines fade with distance from the current position for a depth effect. Clicking any line seeks playback to that timestamp. Falls back to plain text when synced lyrics are not available.
827459c to
3e3bc90
Compare
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Strawberry already fetches lyrics from LrcLib, but discards the
syncedLyricsfield and only usesplainLyrics. This PR threads time-synced LRC data through the entire lyrics pipeline and displays it as a real-time scrolling view in the context panel.Screencast_20260405_093914.mp4
syncedLyricsJSON field that was previously ignoredLrcParserutility parses[MM:SS.CC]LRC timestamps into structuredLyricLineobjectsSyncedLyricsWidget(QListWidget subclass) displays lyrics line-by-line with:Setup
To see synced lyrics, LrcLib must be enabled in your lyrics provider settings:
LrcLib has excellent coverage for popular music. If a track has synced lyrics available on lrclib.net, they will display automatically. Otherwise, plain text lyrics from other providers are shown as before.
New files
src/lyrics/lyricline.hLyricLinestruct (timestamp + text) andSyncedLyricstypesrc/lyrics/lrcparser.h/.cppsrc/context/syncedlyricswidget.h/.cppModified files
lyricssearchresult.hsynced_lyricsfieldlrcliblyricsprovider.cppsyncedLyricsfrom API responselyricsfetchersearch.h/.cpplyricsfetcher.h/.cppcontextview.h/.cppmainwindow.cppCMakeLists.txt