A rest at the end of a score is not exported as part of a midi file
When exporting Midi, the last rest at the end of a piece is not included in the Midi file. This can also be observed from the playback loop function. If you try to loop just one bar with a rest at the end, the rest at the end of the bar gets truncated on every loop.
Thanks
Comments
For loop playback, the same as reported here: #148311: Loop playback doesn't count rests at end of final measure?
Concerning midi file export, best way is to attache the score (sample file) and the exported midi file.