import Lrc From "Lrc" // es module
const Lrc = require("Lrc/Lrc.cjs");
// browser
// import <script src="example.com/js/Lrc/dist/Lrc.js"></script>
const Lrc = window.Lrc;
let line = "[Ar:Lyrics artist]\n" +
"[al:Album where the song is from]\n" +
"[ti:Lyrics (song) title]\n" +
"[au:Creator of the Songtext]\n" +
"[length:How long the song is]\n" +
"[by:Creator of the LRC file]\n" +
"[offset:+5]\n" +
"\n" +
"[re:The player or editor that created the LRC file]\n" +
"[ve:version of program]\n" +
"[00:00.00][00:00.00][00:00.00]\n" +
"[00:01.12] Nothing's Gonna Change My Love For You\n" +
"[00:14.45]\n" +
"[00:15.60]If I had to live my life without you near me\n" +
"[00:21.14]The days would all be empty\n" +
"[00:26.79]The nights would seem so long"
let instance = new Lrc();
console.dir(instance.lyricList); // phrase content.
console.dir(instance.lyricList); // tags content.
-
Notifications
You must be signed in to change notification settings - Fork 0
A lyric file (.lrc) parser and providing some handy method(s) for you to build a lyric view for music player.
License
kamilic/Lrc
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A lyric file (.lrc) parser and providing some handy method(s) for you to build a lyric view for music player.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published