Need help with lyric-parser?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.
ustbhuangyi

Description

lyric-parser base on javascript

471 Stars 76 Forks MIT License 9 Commits 9 Opened issues

Services available

Need anything else?

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

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.