abcjs icon indicating copy to clipboard operation
abcjs copied to clipboard

Feature request: streaming mode (dynamically append ABC text while playing)

Open BlinkDL opened this issue 2 years ago • 1 comments

Thanks for the great lib.

I am building an AI music generator (based on https://huggingface.co/BlinkDL/rwkv-5-music) which can dynamically generate ABC text.

It will be cool if we can dynamically append ABC text while playing.

BlinkDL avatar Sep 16 '23 09:09 BlinkDL

Unfortunately the library isn't set up that way.

As a workaround, you could have each line of music be a separate ABC string so you could generate and draw the next line and get it ready to play, then when the onEnded callback happens on the previous line you start the new one.

paulrosen avatar Nov 11 '23 22:11 paulrosen