Illigal Variable-length quantity format in exported MIDI

Strange, I can not edit my last answer to @ccaudle , so I write the follow-up here:

I found an emergency solution to the problem (on a Lubuntu 26.04.1 LTS, with Ardour 9.8.0) which seems to work:

  • put the text-repr of the corrupt midi file in a text file with mf2t corrupt.mid > corrupt.txt
  • remove the line with the large number in it in currupt.txt
  • let t2mf convert the text file back to a new midi file (t2mf corrupt.txt healthy.mid)