paulrosen / abcjs

javascript for rendering abc music notation
Other
1.87k stars 276 forks source link

Which events of renderMidi method? #96

Closed ghost closed 6 years ago

ghost commented 7 years ago

I'm using renderMidi to play the sheetmusic, and the animation will active base on that renderMidi. So, I want to know the events of renderMidi's status, such as: start, finish.... Can anyone helps me? Thank you alot!

paulrosen commented 7 years ago

The best thing to do is to create a callback and console.log the parameters that are passed to you. Note that I'm in the process of expanding the info sent to the call. I don't know when that will be released. If it turns out that there is info that you would like returned let me know.

ghost commented 7 years ago

Thanks Paulrosen. I hope you will release soon. I ask that question because the cursor is mismatched while playing midi, and the cursor don't repeat when it meets the repeat sign. I don't know how to control the cursor, I think if there are events from renderMidi, maybe I can have a good solution.

paulrosen commented 6 years ago

There is now an example here: https://github.com/paulrosen/vue-abcjs-midi-demo