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

This MIDI does not work #29

Closed ghost closed 4 years ago

ghost commented 6 years ago

https://files.catbox.moe/6l2uuw.mid When trying to play this MIDI, nothing happens. The event listener is never called. Player.events is empty. And I notice Player.tick is an extremely high number.

FunkeMT commented 6 years ago

If I try to open and decode your MIDI file with MidiAndMusicXmlPlayer I get this error:

Assert Failed: Illegal Channel Number specified 0 in index:0037

Well, I think your MIDI file is corrupted rather than there is an error in the MidiPlayerJS.

ghost commented 6 years ago

Huh, I guess it is an invalid MIDI. But all the other MIDI players I've used play the file fine, so I think this player could be made to handle the problem.

grimmdude commented 4 years ago

Hi @ledlamp ,

I recently pushed some changes in 2.0.8 which should fix this.

-Garrett