wayou / selected

:musical_note: A collection of songs that I love, also shows how to sync lyric with HTML5 audio tag
http://wayou.github.io/selected
145 stars 88 forks source link

Add offset time from lrc file. #1

Closed alaintxu closed 10 years ago

alaintxu commented 10 years ago

If the lrc file is not well syncronized with the beggining of the song "offset" is used. This modification gets the offset from the lrc file and adds it to the time each line has to be shown.

wayou commented 10 years ago

Thanks @alaintxu . I didn't know there may be an offset attribute in a lyric file. You taught me :smiley:

alaintxu commented 10 years ago

Thanks @wayou ! This is a very good job you made with this project. Thank you very much and thank you for accepting my pull request ;) .

Also, there is more info you can take from the lrc file if you want (http://en.wikipedia.org/wiki/LRC_%28file_format%29):

[ar:Lyrics artist] [al:Album where the song is from] [ti:Lyrics (song) title] [au:Creator of the Songtext] [length:How long the song is] [by:Creator of the LRC file] [offset:+/- Overall timestamp adjustment in milliseconds, + shifts time up, - shifts down]

[re:The player or editor that created the LRC file] [ve:version of program]

Best Alain