Skip to content

feat(synced-lyrics): lyrics offset #3240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

scratchusernamemrtbts
Copy link
Contributor

Resolves #3237
please give me feedback on the labels and tooltips cus i am not a native english speaker
also right now positive offset means that lyrics show slower than the audio (used with bluetooth speakers which i think is the best usecase for this feature rn)
and negative might be used when the lyrics it pulled timestamp is offset slower than the actual song
might want to swap that but lmk which is best

@JellyBrick JellyBrick added the enhancement New feature or request label Apr 16, 2025
@JellyBrick JellyBrick requested a review from Copilot April 16, 2025 14:10
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • src/i18n/resources/en.json: Language not supported
Comments suppressed due to low confidence (1)

src/plugins/synced-lyrics/menu.ts:17

  • [nitpick] The label and tooltip keys for the lyrics offset feature should clearly indicate its behavior. Consider updating the translation text to explicitly mention that a positive offset delays lyric display (lyrics show slower than audio) and a negative offset accelerates them, ensuring consistency with the feature description.
label: t('plugins.synced-lyrics.menu.offset.label'),

@ArjixWasTaken
Copy link
Contributor

ArjixWasTaken commented Apr 21, 2025

Hello @scratchusernamemrtbts , would you be interested in inviting me to your fork so I can enhance this further?
I would like to add a way of changing the offset directly from the lyrics panel, instead of having to go to the menu settings.


I could of course do that on a follow-up PR, this ain't a dealbreaker

@scratchusernamemrtbts
Copy link
Contributor Author

Hello @scratchusernamemrtbts , would you be interested in inviting me to your fork so I can enhance this further? I would like to add a way of changing the offset directly from the lyrics panel, instead of having to go to the menu settings.

I could of course do that on a follow-up PR, this ain't a dealbreaker

i'm so sorry for just seeing this now
i've just invited you to my fork now

@ArjixWasTaken
Copy link
Contributor

ArjixWasTaken commented May 2, 2025

@scratchusernamemrtbts

I am quite satisfied with an implementation like this, because it allows for more complex options in the lyrics picker, w/o bloating the UI.

picker-offset.mp4

what do you think?

(ofc the CSS has to be improved)

@scratchusernamemrtbts
Copy link
Contributor Author

not sure if the three dots provide a clear indication that it's for lyrics offset
(maybe a timer symbol)

@ArjixWasTaken
Copy link
Contributor

ArjixWasTaken commented May 4, 2025

not sure if the three dots provide a clear indication that it's for lyrics offset (maybe a timer symbol)

The three dots are not for the offset, but for "advanced options"

because it allows for more complex options in the lyrics picker, w/o bloating the UI.

@ArjixWasTaken
Copy link
Contributor

Final design I can come up with

image

some minor changes should be made so it feels less rough, but other than that I am satisfied with it

@ArjixWasTaken
Copy link
Contributor

PS: There is a weird bug when the lyricsOffset is updated using the original menu.

@scratchusernamemrtbts
Copy link
Contributor Author

apparently the counter prompt type doesn't handle negative numbers correctly so I've also changed the prompt type to a normal input instead

@scratchusernamemrtbts
Copy link
Contributor Author

PS: There is a weird bug when the lyricsOffset is updated using the original menu.

Not sure if this is the bug your talking about but i made the ui update when changing the config through the menu prompt

type: 'input',
inputAttrs: {
type: 'number',
style: 'text-align: center; width: unset;' as unknown as CSSStyleDeclaration,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also if anyone's got a better solution than this please lmk

@ArjixWasTaken
Copy link
Contributor

ArjixWasTaken commented Jul 2, 2025

I will be rebasing on master later this day week month, since I am the most familiar with the changes.

Edit: 😭

@ArjixWasTaken
Copy link
Contributor

Some slight CSS changes still need to be done after the rebase.

@scratchusernamemrtbts can you convert this into a draft for now?

@scratchusernamemrtbts scratchusernamemrtbts marked this pull request as draft July 9, 2025 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Offset for Synced Lyrics plugin
3 participants