in some midis the func GetMetaChannel (message.go) returns nothing as data which results in error panic: runtime error: index out of range [0] with length 0
Must be an error in the midifile itself, but as it is just a meta message, I added this code in line 220
//check if the data contains anything
if len(data) == 0 {
return false
}
If you want, I can send you a midi throwing that error
Edited by geerdes