ianespana / ShawzinBot

Convert a MIDI input to a series of key presses for the Shawzin
MIT License
103 stars 26 forks source link

ShawzinBot crashes on MIDI files with Track0 #36

Closed niktr closed 3 years ago

niktr commented 3 years ago

Certain MIDI files that have only 1 track, Track0 will crash the Bot. Also if the file has multiple tracks the bot will not read Track0 in this case i had to create a New empty track and Move all the notes to it so the Bot doesn't skip them or crash. image

niktr commented 3 years ago

im no coding wizard, but i think this might be a string Index issue, no? since it starts at 1 and not 0. i remember from my old school days you had to specify string[0] so it starts at 0 and not 1.