Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staccato position Error #921

Closed
nuochong opened this issue Dec 6, 2020 · 4 comments
Closed

Staccato position Error #921

nuochong opened this issue Dec 6, 2020 · 4 comments
Assignees
Labels

Comments

@nuochong
Copy link

nuochong commented Dec 6, 2020

win 10
MuseScore 3
music xml 3.1
opensheetmusicdisplay version 0.8.7

Expected results
image
Actual results
image

Staccato below invalid

resource
Score https://github.com/nuochong/issues-resource
Software https://github.com/musescore/MuseScore/releases/tag/v3.5.2

MusicXML Fragment
<measure number="1" width="162.00">
  <print>
    <system-layout>
      <system-margins>
        <left-margin>21.00</left-margin>
        <right-margin>0.00</right-margin>
      </system-margins>
      <top-system-distance>195.00</top-system-distance>
    </system-layout>
    <staff-layout number="2">
      <staff-distance>72.77</staff-distance>
    </staff-layout>
  </print>
  <attributes>
    <divisions>2</divisions>
    <key>
      <fifths>0</fifths>
    </key>
    <time>
      <beats>2</beats>
      <beat-type>4</beat-type>
    </time>
    <staves>2</staves>
    <clef number="1">
      <sign>G</sign>
      <line>2</line>
    </clef>
    <clef number="2">
      <sign>G</sign>
      <line>2</line>
    </clef>
  </attributes>
  <direction placement="below">
    <direction-type>
      <dynamics default-x="3.29" default-y="-43.14" relative-y="-40.00">
        <mf />
      </dynamics>
    </direction-type>
    <staff>1</staff>
    <sound dynamics="88.89" />
  </direction>
  <direction placement="above">
    <direction-type>
      <words default-x="-35.96" default-y="17.43" relative-y="20.00" font-weight="bold">Allegretto</words>
    </direction-type>
    <staff>1</staff>
    <sound tempo="116" />
  </direction>
  <note default-x="80.87" default-y="-30.00">
    <pitch>
      <step>G</step>
      <octave>4</octave>
    </pitch>
    <duration>1</duration>
    <voice>1</voice>
    <type>eighth</type>
    <stem>down</stem>
    <staff>1</staff>
    <beam number="1">begin</beam>
    <notations>
      <slur type="start" placement="above" number="1" />
      <technical>
        <fingering>1</fingering>
      </technical>
    </notations>
  </note>
  <note default-x="99.66" default-y="-15.00">
    <pitch>
      <step>C</step>
      <octave>5</octave>
    </pitch>
    <duration>1</duration>
    <voice>1</voice>
    <type>eighth</type>
    <stem>down</stem>
    <staff>1</staff>
    <beam number="1">continue</beam>
    <notations>
      <technical>
        <fingering>3</fingering>
      </technical>
    </notations>
  </note>
  <note default-x="118.44" default-y="-10.00">
    <pitch>
      <step>D</step>
      <octave>5</octave>
    </pitch>
    <duration>1</duration>
    <voice>1</voice>
    <type>eighth</type>
    <stem>down</stem>
    <staff>1</staff>
    <beam number="1">continue</beam>
  </note>
  <note default-x="137.23" default-y="-15.00">
    <pitch>
      <step>C</step>
      <octave>5</octave>
    </pitch>
    <duration>1</duration>
    <voice>1</voice>
    <type>eighth</type>
    <stem>down</stem>
    <staff>1</staff>
    <beam number="1">end</beam>
  </note>
  <backup>
    <duration>4</duration>
  </backup>
  <note default-x="80.87" default-y="-152.77">
    <pitch>
      <step>E</step>
      <octave>4</octave>
    </pitch>
    <duration>2</duration>
    <voice>5</voice>
    <type>quarter</type>
    <stem>up</stem>
    <staff>2</staff>
    <notations>
      <articulations>
        <staccato />
      </articulations>
      <technical>
        <fingering placement="below">3</fingering>
      </technical>
    </notations>
  </note>
  <note>
    <rest />
    <duration>2</duration>
    <voice>5</voice>
    <type>quarter</type>
    <staff>2</staff>
  </note>
</measure><measure number="2" width="57.69">
  <note default-x="10.00" default-y="-20.00">
    <pitch>
      <step>B</step>
      <octave>4</octave>
    </pitch>
    <duration>2</duration>
    <voice>1</voice>
    <type>quarter</type>
    <stem>down</stem>
    <staff>1</staff>
    <notations>
      <slur type="stop" number="1" />
      <articulations>
        <staccato />
      </articulations>
    </notations>
  </note>
  <note default-x="32.93" default-y="-20.00">
    <pitch>
      <step>B</step>
      <octave>4</octave>
    </pitch>
    <duration>2</duration>
    <voice>1</voice>
    <type>quarter</type>
    <stem>down</stem>
    <staff>1</staff>
    <notations>
      <articulations>
        <staccato />
      </articulations>
    </notations>
  </note>
  <backup>
    <duration>4</duration>
  </backup>
  <note default-x="10.00" default-y="-157.77">
    <pitch>
      <step>D</step>
      <octave>4</octave>
    </pitch>
    <duration>2</duration>
    <voice>5</voice>
    <type>quarter</type>
    <stem>up</stem>
    <staff>2</staff>
    <notations>
      <articulations>
        <staccato />
      </articulations>
    </notations>
  </note>
  <note>
    <rest />
    <duration>2</duration>
    <voice>5</voice>
    <type>quarter</type>
    <staff>2</staff>
  </note>
</measure><measure number="3" width="91.13">
  <note default-x="10.00" default-y="-30.00">
    <pitch>
      <step>G</step>
      <octave>4</octave>
    </pitch>
    <duration>1</duration>
    <voice>1</voice>
    <type>eighth</type>
    <stem>down</stem>
    <staff>1</staff>
    <beam number="1">begin</beam>
    <notations>
      <slur type="start" placement="above" number="1" />
      <technical>
        <fingering>1</fingering>
      </technical>
    </notations>
  </note>
  <note default-x="28.79" default-y="-10.00">
    <pitch>
      <step>D</step>
      <octave>5</octave>
    </pitch>
    <duration>1</duration>
    <voice>1</voice>
    <type>eighth</type>
    <stem>down</stem>
    <staff>1</staff>
    <beam number="1">continue</beam>
    <notations>
      <technical>
        <fingering>4</fingering>
      </technical>
    </notations>
  </note>
  <note default-x="47.57" default-y="-5.00">
    <pitch>
      <step>E</step>
      <octave>5</octave>
    </pitch>
    <duration>1</duration>
    <voice>1</voice>
    <type>eighth</type>
    <stem>down</stem>
    <staff>1</staff>
    <beam number="1">continue</beam>
  </note>
  <note default-x="66.36" default-y="-10.00">
    <pitch>
      <step>D</step>
      <octave>5</octave>
    </pitch>
    <duration>1</duration>
    <voice>1</voice>
    <type>eighth</type>
    <stem>down</stem>
    <staff>1</staff>
    <beam number="1">end</beam>
  </note>
  <backup>
    <duration>4</duration>
  </backup>
  <note default-x="10.00" default-y="-147.77">
    <pitch>
      <step>F</step>
      <octave>4</octave>
    </pitch>
    <duration>2</duration>
    <voice>5</voice>
    <type>quarter</type>
    <stem>up</stem>
    <staff>2</staff>
    <notations>
      <articulations>
        <staccato />
      </articulations>
    </notations>
  </note>
  <note>
    <rest />
    <duration>2</duration>
    <voice>5</voice>
    <type>quarter</type>
    <staff>2</staff>
  </note>
</measure><measure number="4" width="57.69">
  <note default-x="10.00" default-y="-15.00">
    <pitch>
      <step>C</step>
      <octave>5</octave>
    </pitch>
    <duration>2</duration>
    <voice>1</voice>
    <type>quarter</type>
    <stem>down</stem>
    <staff>1</staff>
    <notations>
      <slur type="stop" number="1" />
      <articulations>
        <staccato />
      </articulations>
    </notations>
  </note>
  <note default-x="32.93" default-y="-15.00">
    <pitch>
      <step>C</step>
      <octave>5</octave>
    </pitch>
    <duration>2</duration>
    <voice>1</voice>
    <type>quarter</type>
    <stem>down</stem>
    <staff>1</staff>
    <notations>
      <articulations>
        <staccato />
      </articulations>
    </notations>
  </note>
  <backup>
    <duration>4</duration>
  </backup>
  <note default-x="10.00" default-y="-152.77">
    <pitch>
      <step>E</step>
      <octave>4</octave>
    </pitch>
    <duration>2</duration>
    <voice>5</voice>
    <type>quarter</type>
    <stem>up</stem>
    <staff>2</staff>
    <notations>
      <articulations>
        <staccato />
      </articulations>
    </notations>
  </note>
  <note>
    <rest />
    <duration>2</duration>
    <voice>5</voice>
    <type>quarter</type>
    <staff>2</staff>
  </note>
</measure><measure number="5" width="92.06">
  <direction placement="below">
    <direction-type>
      <wedge type="crescendo" number="1" default-y="-76.30" />
    </direction-type>
    <staff>1</staff>
  </direction>
  <note default-x="10.94" default-y="-30.00">
    <pitch>
      <step>G</step>
      <octave>4</octave>
    </pitch>
    <duration>1</duration>
    <voice>1</voice>
    <type>eighth</type>
    <stem>down</stem>
    <staff>1</staff>
    <beam number="1">begin</beam>
    <notations>
      <slur type="start" placement="above" number="1" />
      <technical>
        <fingering>1</fingering>
      </technical>
    </notations>
  </note>
  <note default-x="29.72" default-y="-15.00">
    <pitch>
      <step>C</step>
      <octave>5</octave>
    </pitch>
    <duration>1</duration>
    <voice>1</voice>
    <type>eighth</type>
    <stem>down</stem>
    <staff>1</staff>
    <beam number="1">continue</beam>
    <notations>
      <technical>
        <fingering>2</fingering>
      </technical>
    </notations>
  </note>
  <note default-x="48.51" default-y="-5.00">
    <pitch>
      <step>E</step>
      <octave>5</octave>
    </pitch>
    <duration>1</duration>
    <voice>1</voice>
    <type>eighth</type>
    <stem>down</stem>
    <staff>1</staff>
    <beam number="1">continue</beam>
    <notations>
      <technical>
        <fingering>3</fingering>
      </technical>
    </notations>
  </note>
  <note default-x="67.30" default-y="5.00">
    <pitch>
      <step>G</step>
      <octave>5</octave>
    </pitch>
    <duration>1</duration>
    <voice>1</voice>
    <type>eighth</type>
    <stem>down</stem>
    <staff>1</staff>
    <beam number="1">end</beam>
  </note>
  <backup>
    <duration>4</duration>
  </backup>
  <note>
    <rest />
    <duration>2</duration>
    <voice>5</voice>
    <type>quarter</type>
    <staff>2</staff>
  </note>
  <note default-x="48.51" default-y="-162.77">
    <pitch>
      <step>C</step>
      <octave>4</octave>
    </pitch>
    <duration>2</duration>
    <voice>5</voice>
    <type>quarter</type>
    <stem>up</stem>
    <staff>2</staff>
    <notations>
      <slur type="start" placement="below" number="2" />
      <slur type="start" placement="below" number="3" />
      <technical>
        <fingering placement="below">3</fingering>
      </technical>
    </notations>
  </note>
</measure><measure number="6" width="94.93">
  <note default-x="13.80" default-y="0.00">
    <pitch>
      <step>F</step>
      <octave>5</octave>
    </pitch>
    <duration>1</duration>
    <voice>1</voice>
    <type>eighth</type>
    <stem>down</stem>
    <staff>1</staff>
    <beam number="1">begin</beam>
  </note>
  <note default-x="32.59" default-y="-5.00">
    <pitch>
      <step>E</step>
      <octave>5</octave>
    </pitch>
    <duration>1</duration>
    <voice>1</voice>
    <type>eighth</type>
    <stem>down</stem>
    <staff>1</staff>
    <beam number="1">continue</beam>
  </note>
  <note default-x="51.37" default-y="-10.00">
    <pitch>
      <step>D</step>
      <octave>5</octave>
    </pitch>
    <duration>1</duration>
    <voice>1</voice>
    <type>eighth</type>
    <stem>down</stem>
    <staff>1</staff>
    <beam number="1">continue</beam>
  </note>
  <note default-x="70.16" default-y="-15.00">
    <pitch>
      <step>C</step>
      <octave>5</octave>
    </pitch>
    <duration>1</duration>
    <voice>1</voice>
    <type>eighth</type>
    <stem>down</stem>
    <staff>1</staff>
    <beam number="1">end</beam>
  </note>
  <backup>
    <duration>4</duration>
  </backup>
  <note default-x="13.80" default-y="-162.77">
    <pitch>
      <step>C</step>
      <octave>4</octave>
    </pitch>
    <duration>2</duration>
    <voice>5</voice>
    <type>quarter</type>
    <stem>up</stem>
    <staff>2</staff>
    <notations>
      <slur type="stop" number="2" />
    </notations>
  </note>
  <note default-x="51.37" default-y="-152.77">
    <pitch>
      <step>E</step>
      <octave>4</octave>
    </pitch>
    <duration>2</duration>
    <voice>5</voice>
    <type>quarter</type>
    <stem>up</stem>
    <staff>2</staff>
  </note>
</measure><measure number="7" width="94.93">
  <note default-x="13.80" default-y="0.00">
    <pitch>
      <step>F</step>
      <octave>5</octave>
    </pitch>
    <duration>1</duration>
    <voice>1</voice>
    <type>eighth</type>
    <stem>down</stem>
    <staff>1</staff>
    <beam number="1">begin</beam>
    <notations>
      <technical>
        <fingering>4</fingering>
      </technical>
    </notations>
  </note>
  <note default-x="32.59" default-y="-10.00">
    <pitch>
      <step>D</step>
      <octave>5</octave>
    </pitch>
    <duration>1</duration>
    <voice>1</voice>
    <type>eighth</type>
    <stem>down</stem>
    <staff>1</staff>
    <beam number="1">continue</beam>
  </note>
  <note default-x="51.37" default-y="-5.00">
    <pitch>
      <step>E</step>
      <octave>5</octave>
    </pitch>
    <duration>1</duration>
    <voice>1</voice>
    <type>eighth</type>
    <stem>down</stem>
    <staff>1</staff>
    <beam number="1">continue</beam>
  </note>
  <note default-x="70.16" default-y="-15.00">
    <pitch>
      <step>C</step>
      <octave>5</octave>
    </pitch>
    <duration>1</duration>
    <voice>1</voice>
    <type>eighth</type>
    <stem>down</stem>
    <staff>1</staff>
    <beam number="1">end</beam>
  </note>
  <direction placement="below">
    <direction-type>
      <wedge type="stop" number="1" relative-x="-0.15" />
    </direction-type>
    <staff>1</staff>
  </direction>
  <backup>
    <duration>4</duration>
  </backup>
  <note default-x="13.80" default-y="-167.77">
    <pitch>
      <step>B</step>
      <octave>3</octave>
    </pitch>
    <duration>2</duration>
    <voice>5</voice>
    <type>quarter</type>
    <stem>up</stem>
    <staff>2</staff>
    <notations>
      <technical>
        <fingering placement="below">3</fingering>
      </technical>
    </notations>
  </note>
  <note default-x="51.37" default-y="-162.77">
    <pitch>
      <step>C</step>
      <octave>4</octave>
    </pitch>
    <duration>2</duration>
    <voice>5</voice>
    <type>quarter</type>
    <stem>up</stem>
    <staff>2</staff>
  </note>
</measure><measure number="8" width="61.15">
  <note default-x="13.80" default-y="-10.00">
    <pitch>
      <step>D</step>
      <octave>5</octave>
    </pitch>
    <duration>4</duration>
    <voice>1</voice>
    <type>half</type>
    <stem>down</stem>
    <staff>1</staff>
    <notations>
      <slur type="stop" number="1" />
    </notations>
  </note>
  <backup>
    <duration>4</duration>
  </backup>
  <note default-x="13.80" default-y="-172.77">
    <pitch>
      <step>A</step>
      <octave>3</octave>
    </pitch>
    <duration>4</duration>
    <voice>5</voice>
    <type>half</type>
    <stem>up</stem>
    <staff>2</staff>
    <notations>
      <slur type="stop" number="3" />
    </notations>
  </note>
  <barline location="right">
    <bar-style>light-heavy</bar-style>
    <repeat direction="backward" />
  </barline>
</measure>
@sschmidTU
Copy link
Contributor

Could you share the sample musicxml please (rename the file to .txt)?
Those 8 bars would be enough. Thanks!

@sschmidTU sschmidTU added the bug label Dec 6, 2020
@sschmidTU sschmidTU self-assigned this Dec 6, 2020
@nuochong
Copy link
Author

nuochong commented Dec 6, 2020

Related resources have been updated

@sschmidTU
Copy link
Contributor

Fixed.

image

Unfortunately, MuseScore (3.6.0.487915347) doesn't export the placement of an articulation (staccato) if you set it explicitly.
But it seems like the default of setting the articulation (staccato) below the note if its stem goes up is usually desired anyways.

Changes for our existing samples are pretty much all positive, diffs:
Schubert_An_die_Musik.xml_1 0.349973
MuzioClementi_SonatinaOpus36No3_Part1.xml_1 0.00394711
MuzioClementi_SonatinaOpus36No1_Part1.xml_1 0.000396049

Clementi bars 24-26, before:
image
after:
image

Schubert - An die Musik:
image
image

image
image

@nuochong
Copy link
Author

Thank you for your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants