paulrosen / abcjs

javascript for rendering abc music notation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TimingCallbacks clarification/bug?

dbadb opened this issue · comments

I was dabbling with getting performance info from abcjs using the TimingCallbacks feature. Seems to work but for the fact that the midiPitches array is always empty. This can also be seen in the output of the example found here (at bottom).

Is this a work-in-progress, a bug or perhaps a misunderstanding on my part?

Thanks!

Upon inspection of synth-controller.js, this interesting comment perhaps lights the path:

Need to create the TimingCallbacks after priming the midi so that the midi data is available for the callbacks.

midiPitches is only set if you do the setUpAudio call. That call is also done if you initialize the synth

thanks for the clarification! closing issue.