When exporting MIDI files, the rest at the end are being ignored

• Dec 25, 2020 - 06:26
Reported version
3.5
Type
Functional
Frequency
Once
Severity
S3 - Major
Reproducibility
Always
Status
active
Regression
No
Workaround
No
Project

Platform: Linux(Ubuntu)
Version: 3.5.2

When exporting MIDI files, the rest at the very end of sheet are being ignored. That is, the MIDI file ended at the offset of last non-resting note, the rest note at the end were "cutted off".
This bug might sounds trivial, but the real problem is, if the last non-resting note is short, and user try to synthesize the midi file, there will be a clipping effect at the end of audio, which is very annoying.

Two samples are uploaded, I believe it is a 100% reproduction. I noticed aforementioned clipping effect when syncing the midi output of sample 2 by fluidsynth.

I noticed that a duplicate was already here(https://musescore.org/en/node/148311), but I cannot reopen that issue so I have to submit a seperated one.

Attachment Size
sample1.mscz 13.96 KB
sample2.mscz 24.54 KB

Comments

In reply to by Jojo-Schmitz

> #148311: Loop playback doesn't count rests at end of final measure is closed as being fixed, but doesn't seem related to me.

In short: It is not.

Long story: They are two different issues. One is rest at the end was ignored when loop playbacking, this is fixed in 3.5. The other one is rest at the end being ignored when exporting midi, this hasn't been fixed yet.