Skip to content

enclosure attribute problems in <direction> #519

@lemzwerg

Description

@lemzwerg

IMHO, the current situation with the enclosure attribute within <direction> is ... suboptimal in MusicXML, to say it politely.

  1. Because various <direction-type> elements can be grouped together, the decision that only some children have an enclosure attribute looks arbitrary. For example, I can have a boxed 'molto f', but I cannot have a boxed coda sign (for example, to construct a boxed version of
    image

  2. It is undefined whether consecutive elements that have the enclosure attribute set are put together into a single box or not; see multiple `<rehearsal>` children in a single `<direction-type>` element #518 for examples.

As a remedy for item 1, please either add more enclosure attributes to <direction-type> children or document the intended usage of the elements so that it is clear from the description why it doesn't have this attribute.

For item 2 I'm waiting for @mscuthbert's forthcoming proposal of an enclosure-break attribute 🙂

Regarding a boxed 'molto f': code like

<direction>
  <direction-type>
    <words enclosure="rectangle">molto </words>
  </direction-type>
  <direction-type>
    <dynamics>
      <f/>
    </dynamics>
  </direction-type>
</direction>

fails completely in pre-4.4.0 MuseScore:
image
and Finale 27 cannot correctly cope with the 'rectangle' value:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions