Import XML dotted notes
I do convert NWC files via xml2nwc tool.
Since Musescore V2 (not in the previous version) I do receive on input the message that it is not a real xml file, but it let me continue anyway with good MSCZ file with the exeption of:
-title is lost
-tempo is lost
and all dotted notes are replaced by the note with a rest.
It attachment an XML example
Attachment | Size |
---|---|
O salutaris hostia-2015.06.22.04.17.13.xml | 66.74 KB |
Comments
xml2nwc, not nwc2xml?
Actually the error message (for this file) is:
Fatal error: line 3 column 194 Element movement-title is not defined in this scope.
Followed by a message claiming the file corrupt in many places:
Measure 11 Staff 1 incomplete. Expected: 4/4; Found: 9/8
Measure 11 Staff 2 incomplete. Expected: 4/4; Found: 10/8
Measure 11 Staff 3 incomplete. Expected: 4/4; Found: 9/8
Measure 11 Staff 4 incomplete. Expected: 4/4; Found: 10/8
Measure 12 Staff 1 incomplete. Expected: 4/4; Found: 9/8
Measure 12 Staff 2 incomplete. Expected: 4/4; Found: 9/8
Measure 12 Staff 3 incomplete. Expected: 4/4; Found: 9/8
Measure 12 Staff 4 incomplete. Expected: 4/4; Found: 9/8
Measure 13 Staff 1 incomplete. Expected: 4/4; Found: 9/8
Measure 13 Staff 2 incomplete. Expected: 4/4; Found: 9/8
Measure 13 Staff 3 incomplete. Expected: 4/4; Found: 9/8
Measure 13 Staff 4 incomplete. Expected: 4/4; Found: 9/8
Measure 14 Staff 2 incomplete. Expected: 4/4; Found: 5/4
Measure 14 Staff 3 incomplete. Expected: 4/4; Found: 5/4
Measure 14 Staff 4 incomplete. Expected: 4/4; Found: 9/8
Measure 22 Staff 1 incomplete. Expected: 4/4; Found: 5/4
Measure 22 Staff 2 incomplete. Expected: 4/4; Found: 5/4
Measure 22 Staff 3 incomplete. Expected: 4/4; Found: 5/4
Measure 22 Staff 4 incomplete. Expected: 4/4; Found: 5/4
Xml2nwc or nwc2xml : iT is the same tool to be used in both directions
In reply to Xml2nwc or nwc2xml : iT is by Pooms
But depending of directions you need to complain to different vendors ;-)
Here it seems nwc2xml generates invalid MusiXML, but I guess we'd need Leon, our resident MusicXML guru, have a look at this...
In reply to But depending of directions by Jojo-Schmitz
I agree that the fault may be with the xml convertor. I'm testing the different directions.
mscz to xml to nwc seems to work well (maybe the exported xml is ok)
nwc to xml to nwc is also ok.
Thank you already for your and Leon's assistance.
In reply to I agree that the fault may be by Pooms
If you have NWC to export to NWCtext you might want to try http://nwc2musicxml.appspot.com/ It should create valid MusicXML (and if it doesn't I'm the author I will be happy to fix, and it's open source https://github.com/lasconic/nwc2musicxml )
In reply to If you have NWC to export to by [DELETED] 5
I recieved a reaction from Niversoft:
The Title is in the XML file but is not displayed by MuseScore v1.3. It seems the converter does not insert the movement-title element at the correct location in the XML file. This will be fixed.
The Tempo is not converted at all yet.
Dotted notes are all OK in MuseScore v1.3. I didn't try MuseScore v2.
In reply to I recieved a reaction from by Pooms
You'd definitely need to try MuseCore 2.0, 1.3 won't receive further fixed and 2.0 has received many, also in the XML area.
If there are problems in the 2.0 XML import, we'd need to get the ironed out.
In reply to You'd definitely need to try by Jojo-Schmitz
The problem i encounter IS in V2! The V1.3 comment was from the owner of xml2nwc. I did copy his reply, because he gave an answer to the "title" and "tempo" problem: title Will be fixed by him, tempo will not yet be transfered in xml.
In reply to If you have NWC to export to by [DELETED] 5
I tried the conversion tool from NWC to XML at http://nwc2musicxml.appspot.com/:
Dotted notes OK
Title OK
Tempo OK if there is no text
The problems I had are resolved using this conversion tool.
Thank you.
Flow directions like DC, Fine, Volta's still missing but I can easily add them again in Musescore.
In reply to I tried the conversion tool by Pooms
Great! Flow control import from NWCtxt is not implemented indeed.
In reply to I agree that the fault may be by Pooms
The file is invalid MusicXML because many elements are incorrectly ordered, which will easily be shown by any XML schema validator. The MuseScore MusicXML importer unfortunately depends on the correct order of elements, which causes many issues with your file.
Please ask your supplier to use any XML schema validator to make sure the files produced are valid. For starters, perhaps you could forward the following information:
- movement-number and movement-title go between score-partwise and identification
- part-name goes between score-part and midi-instrument
- within attributes, the order is divisions, key, time, clef
- within clef, the order is sign, line
- within note, the order is pitch, duration, voice, type, dot, staff, lyric