Incorrect note length generated when importing a midi file containing tie.

• Aug 7, 2022 - 20:17
Reported version
3.6
Type
Functional
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
by design
Regression
No
Workaround
No
Project

The combination of notes: minim-tied quaver, quaver rest, crotchet in a midi file is imported incorrectly, with the tied quaver and rest being replaced by a dotted minim.

Test file:
simple-test.png

This will export to a midi file as expected (visualised with Aria Maestosa)
simple-test-mid.png

Expected behaviour:
Importing the midi file would result in:
simple-test.png

Actual behaviour:
Importing the midi file results in:
simple-test-mid-import.png

Version number:
OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.6.2.548021803, revision: 3224f34
But also fails in the latest nightly releases for v3 and v4.

The test_midi_import file, and simple-test.mid, contains the simple test case.


Comments

If you deselect "Simplify durations" and Apply, it gets imported as half-note-tied-to16th which is close to the original sound produced as the first piano note decays.