grimmdude / MidiPlayerJS

♬ MIDI parser & player engine for browser or Node. As a parser converts MIDI events into JSON. Works well with single or multitrack MIDI files.
https://grimmdude.com/MidiPlayerJS/
MIT License
357 stars 52 forks source link

prevent endOfFile to overflow #40

Closed akupiec closed 5 years ago

akupiec commented 5 years ago

Fix problem when playing not stops at the right moment.

I have some wild playing sounds after progress going over 100%, moreover it should fix issue #32.

Right now Player.prototype.eventsPlayed is unused I would consider flagging it as depricated.