ustbhuangyi / Lyric Parser
Licence: mit
lyric-parser base on javascript
Stars: ✭ 486
Programming Languages
javascript
184084 projects - #8 most used programming language
lyric-parser
lyric-parser base on javascript
Install
npm install lyric-parser
Usage
import Lyric from 'lyric-parser'
let lyric = new Lyric(lyricStr, handler)
function hanlder({lineNum, txt}){
// this hanlder called when lineNum change
}
API
play()
play the lyric
stop()
stop play
seek(startTime)
seek to correspond starTime
togglePlay()
toggle play state
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].