partial fix for #5973 (multi-track midi file import)