on import this message occurs :
Fatal error : .... Content of element midi-program does not match its type definition : 0 is not valid according to xs;positiveInteger.
The data in the XML file is the following : 0
Hello,
This bug appears on beta version 2.0 running under Windows 7, on line 35 of the attached document.
The XML file was generated using Cubase 6.5.5.
The error message appears valid- if the spec says something is supposed to be a positive integer, then 0 is indeed not legal. But if you try to load it anyhow, it crashes. But the crash appears to be unrelated to anything about the MIDI program value - it's something about tuplets apparently. I've updated the title and priority of the report.
Cause of the crash is that the second (!) piano part in the XML file incorrectly refers to staff 2, while it actually is a single staff part, as no staves element with value 2 is present.
After adding a "staves 2" element the resulting file (attached) does import. It then shows two piano parts, with the second one having no notes in its upper staff. This leads to the conclusion that we are probably dealing with an incorrectly encoded single piano part.
Please report this to Cubase.
Further notes:
The error message is justified, as midi program numbers in MusicXML are numbers ranging from 1 to 128, while the file specifies 0.
Many tuplet errors are reported, but I did not investigate these.
Comments
What version of MuseScore, what OS, and we defintily need that XML file
Hello,
This bug appears on beta version 2.0 running under Windows 7, on line 35 of the attached document.
The XML file was generated using Cubase 6.5.5.
Regards
The error message appears valid- if the spec says something is supposed to be a positive integer, then 0 is indeed not legal. But if you try to load it anyhow, it crashes. But the crash appears to be unrelated to anything about the MIDI program value - it's something about tuplets apparently. I've updated the title and priority of the report.
Cause of the crash is that the second (!) piano part in the XML file incorrectly refers to staff 2, while it actually is a single staff part, as no staves element with value 2 is present.
After adding a "staves 2" element the resulting file (attached) does import. It then shows two piano parts, with the second one having no notes in its upper staff. This leads to the conclusion that we are probably dealing with an incorrectly encoded single piano part.
Please report this to Cubase.
Further notes:
The error message is justified, as midi program numbers in MusicXML are numbers ranging from 1 to 128, while the file specifies 0.
Many tuplet errors are reported, but I did not investigate these.
Will implement a simple workaround that allows MuseScore to import the attached file without crashing.
Fixed in b6538024ec
Automatically closed -- issue fixed for 2 weeks with no activity.