ianespana/ShawzinBot

ShawzinBot crashes on MIDI files with Track0

Closed this issue · 1 comments

niktr commented

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

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.