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.

About the developer

ustbhuangyi
486 Stars 79 Forks MIT License 9 Commits 9 Opened issues

Description

lyric-parser base on javascript

Services available

!
?

Need anything else?

Contributors list

# 2,301
Vue.js
smarty
CSS
Shell
7 commits
# 385,481
JavaScr...
1 commit

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.