In midi-player-js, there was an issue where only one event per track can play in each interval loop (by default every 5 milliseconds.) This would result in the player appearing to lag when a lot of notes are played at once, such as in black midis. This fix makes it continue to do a playLoop until it has fully caught up on events. This may not be the most efficient way to fix this issue, but it seems to fully fix it, as opposed to setting sampleRate to 0 which only makes the issue harder to see. https://github.com/grimmdude/MidiPlayerJS/issues/25 edit: moved pull request to my other account
In midi-player-js, there was an issue where only one event per track can play in each interval loop (by default every 5 milliseconds.) This would result in the player appearing to lag when a lot of notes are played at once, such as in black midis. This fix makes it continue to do a playLoop until it has fully caught up on events. This may not be the most efficient way to fix this issue, but it seems to fully fix it, as opposed to setting sampleRate to 0 which only makes the issue harder to see. https://github.com/grimmdude/MidiPlayerJS/issues/25 edit: moved pull request to my other account