I'm using MIDI.js to play a MIDI file with several musical instruments.
Why are the following things executed too late?
- First notes of the song. Like all notes, they are scheduled via
start()
of anAudioBufferSourceNode
here. - MIDI program change events. They are scheduled via
setTimeout
here. Their "lateness" is even worse than that of the first notes.
When I stop the song and start it again, there are no problems anymore, but the delay
values are very similar. So the delay
values are probably not the cause of the problem.
(I use the latest official branch (named "abcjs") because the "master" branch is older and has more problems with such MIDI files.)
Via Active questions tagged javascript - Stack Overflow https://ift.tt/ru1Y7Xw
Comments
Post a Comment