Skip to content

Wedges with ends linked to different voices #151

@hbitteur

Description

@hbitteur

Using the same score as in #118 we can observe that some wedges (either crescendo or diminuendo) are not correctly rendered by music editors.
Though these wedges are present in the exported MusicXML file, MuseScore spans them through many measures, while Finale does not render them at all.

Here is an example (using input view and output view):
image
image

One can notice that the wedge is linked on left and right side to head chords. But these two head chords do not belong to the same voice: voice 2 for the left side and voice 1 for the right side.
In a given measure, MusicXML processes voices one after the other, which results in:

      <direction>
        <direction-type>
          <wedge type="stop" spread="0" default-x="39"></wedge><!-- stop -->
        </direction-type>
        <staff>1</staff>
      </direction>
      <note default-x="139">
        <pitch>
          <step>G</step>
          <octave>4</octave>
        </pitch>
        <duration>2</duration>
        <voice>1</voice>
        <type>quarter</type>
        <stem default-y="5">up</stem>
        <staff>1</staff>
        <notations>
          <slur type="stop" number="1" bezier-x="-5" bezier-y="13" default-x="7" default-y="-5"></slur>
        </notations>
      </note>
      <backup>
        <duration>8</duration>
      </backup>
      <forward>
        <duration>4</duration>
        <voice>2</voice>
        <staff>1</staff>
      </forward>
      <direction placement="below">
        <direction-type>
          <wedge type="diminuendo" spread="12" default-x="7" default-y="-84"></wedge> <!-- start-->
        </direction-type>
        <staff>1</staff>
      </direction>
      <note default-x="97">
        <pitch>
          <step>B</step>
          <alter>-1</alter>
          <octave>3</octave>
        </pitch>
        <duration>4</duration>
        <voice>2</voice>
        <type>half</type>
        <accidental>flat</accidental>
        <stem default-y="-84">down</stem>
        <staff>1</staff>
      </note>

In short, in the MusicXML stream, the "stop" event occurs before the "start" event, although their location abscissae are correct.
How could we fix this? Any idea?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions