MusicXML Not Exporting Positioning

• Mar 6, 2017 - 03:42
Reported version
S4 - Minor

Currently, the default-x and default-y attributes are only being exported for notes (incorrectly), textLines, and creditWords. It's important that default-x and default-y are implemented for all the elements that are exported, so that the positioning is correct when imported into other notation viewers.


Here are the files used to test the export positioning. Since I used finale to test, and finale doesn't import all elements' positioning, some elements still may be off, but Finale most closely follows the MusicXML spec, so that's what I stuck with throughout the testing.

Something weird I have noticed though is that Finale treats the default-x positions for the SLine elements like they are relative to the right side of the measure, while the MusicXML spec tells us that those elements should be relative to the left side of the measure. I coded the positioning to match Finale's behavior, but I'm not sure how compatible it will be with other notation engines.

Attachment Size
PositioningTest.mscz 9.91 KB
8va hairpin test.mscz 3.08 KB
PositioningTest.xml 15.77 KB
8va hairpin test.xml 4.54 KB