/python-lyrics-generator

generate lyrics for checkpoints in React Timer from an lrc file

Primary LanguagePython

python-lyrics-generator

generate lyrics for checkpoints in React Timer from an lrc file

Use an .lrc file having lines like:

[00:03.90]Combat
[00:06.40]I'm ready for combat
[00:10.40]I say I don't want that
[00:14.15]But what if I do?

run the script and it will print the output that can be passed checkpoints array:

checkpoints={[
   { time: 3900, callback: () => this.setState({ lyric: 'Combat' }), },
   { time: 6400, callback: () => this.setState({ lyric: "I'm ready for combat" }), },
   { time: 10400, callback: () => this.setState({ lyric: "I say I don't want that" }), },
   { time: 14150, callback: () => this.setState({ lyric: 'But what if I do?' }), }
]}