Musicxml import support request

I have a request to add support for importing a couple of musicxml feautures that currently only appear to be supported with export.

The direction musicxml element can have a placement attribute (e.g. placement=”above” or placement=”below”) that specifies whether the words element within should be placed above or below the staff. It looks like Dorico can export the placement attribute but will ignore it on import and always place the text above the staff.

A note musicxml element can have a notehead element within it that adds round brackets to the notehead by specifying the parentheses attribute (e.g. parentheses=”yes”). It looks like Dorico can export this but ignores the parentheses on import.

1 Like

Hi @wme , welcome to the forum.

Could you provide a simple sample document (Dorico Project File), just 1 instrument, 2 bars or so which shows this behavior ?

Does the exported XML import correctly in other notation programs, but not in Dorico itself?

Developers are helped with simple, reproducible examples.

Here is an example project file that can show the issue. This has noteheads with round brackets (i.e. parentheses) around them and some text below and above the top staff. If you export this to musicxml then reimport, the round brackets are missing and all the text is above the top staff. I imported the exported musicxml into an older version of Musescore which resulted in the round brackets and text above and below the top staff as it was in the original Dorico project. I had to use an older version of Musescore because there is currently also a bug in Musescore with importing musicxml with round brackets.

Test parentheses and text placement.dorico (1.3 MB)

1 Like

I can reproduce with your file that exporting to XML and re-importing it, leaves text placement and brackets out.

Can’t find any XML preferences which I had switched of that might prevent that.

Couldn’t test with Musescore, but Finale27 struggles too. No brackets there, not below enough :slight_smile:

I was told the development team reads each and every post, so if they want to improve the XML import for this, they now have a nice example.

To be useful, the “example” should probably include the original Dorico file and the XML export.

@wme allready provided a Dorico Project File above.

Just export it, and import in a new file and see what happens.

The xml code shows things like this for text below

 <direction placement="below">
        <direction-type>
          <words font-family="Academico" font-size="11.904" justify="left" xml:space="preserve" default-y="-40">treble below</words>
        </direction-type>
        <staff>1</staff>
      </direction>

and parentheses

<note default-x="115">
        <pitch>
          <step>A</step>
          <octave>4</octave>
        </pitch>
        <duration>4</duration>
        <voice>1</voice>
        <type>quarter</type>
        <stem default-y="7.5">up</stem>
        <notehead parentheses="yes">normal</notehead>
        <staff>1</staff>
      </note>

which are neglected on import.

2 Likes

Here is an example musicxml file exported from Dorico using the Dorico project that I previously attached. Thanks to @TonH who pointed out the relevant XML for the text placement and parentheses, which are present in this exported XML although not supported on import.

Test parentheses and text placement - Full score - 01 Flow 1.musicxml (9.4 KB)

That’s surprising to me that Finale has issues with this example also. As far as I know they are standard parts of musicxml, although I know there are often different ways to represent things and probably few programs support everything.

At any rate, thanks to those who have responded so far to my request.