Command line MIDI convert creates a corrupt file, but GUI works

• Sep 3, 2016 - 17:15
Reported version
S5 - Suggestion

I tried to convert the attached midi by using the command

mscore 100mph_z.mid -o 100mph_converted_using_command_line.mscx

and the resulting file could not be opened.

I believe this is because it fails to properly escape an ampersand in a midi text event. In the file there's a node

            <text>TVF&TVA Env Decay   </text>

But it should probably be output as

            <text>TVF&amp;TVA Env Decay   </text>

In the version converted with the gui, I'm not seeing that node at all.

I just checked and I'm still on version 2.0.2. Sorry if this issue has already been raised or resolved.


xmllint --valid 100mph_z.mscx
100mph_z.mscx:19351: parser error : EntityRef: expecting ';'
            <text>TVF&TVA Env Decay   </text>

Edit again:

I just found another file that has a similar problem, but this time with a less than and greater than symbol not being properly escaped. Let me know if you need it.


I tested it again using the latest nightly (MuseScoreNightly-201609061123-master-7dccb92-x86_64) and the problem still exists.


Reported version 3.0 2.1

but also in 2.0.3, so let's keep the "version" at that. But thanks for checking and confirming that the latest version is affected too