Done. I can't tell what the test failures are about, test-linux-32 job seems flaky on pretty much all MRs around.
Note that this patch only affects RMID files, which are probably the minority of MIDI files, and any exceptions/crashes/races/test failures would be already triggerable with equivalent SMF files too.