polyrhythm-project / polyrhythm-website

3 stars 3 forks source link

Add staff placement for expressive text #40

Open aaronearlgraham opened 4 years ago

aaronearlgraham commented 4 years ago

T716, Copland, Piano part missing "poco rubato" in first measure

Sib: image

VHV: image

craigsapp commented 4 years ago

(and octave mark is on the wrong staff which I am working on right now for another example).

craigsapp commented 4 years ago

Adding links to the Polyrhythm example page would be useful to post along with the issue (I am too lazy to open a new page and go their on my own :-).

In this case the link would be:

https://polyrhythm.humdrum.org/example/?id=716

craigsapp commented 4 years ago

The expressive text is being converted into Humdrum:

Screen Shot 2020-01-19 at 18 45 56

But a staff placement above or below the score is required in order to show it (so this will need to be added to the converter to fix the problem):

Also, the text should come after the spine split so that it is immediately before the note to which it is attached:

Screen Shot 2020-01-19 at 18 48 18

Mixing of text and dynamics will also have to be considered.

craigsapp commented 4 years ago

Also the ottava line is backwards, so that will need fixing:

Screen Shot 2020-01-19 at 18 51 09
cdf75ubc commented 4 years ago

T331, Bartok: vl 1, bar 2, con sord. appears under the staff in VHV same for cello and cb, bar 4, for pizz and con sord expression text markings

Screen Shot 2020-01-23 at 2 09 18 PM Screen Shot 2020-01-23 at 2 10 35 PM Screen Shot 2020-01-23 at 2 11 08 PM Screen Shot 2020-01-23 at 2 11 29 PM
craigsapp commented 4 years ago

Here is the Sibelius-exported MusicXML for a "con sord.":

                        <direction>
                                <direction-type>
                                        <words default-y='20' relative-x='-6'>con sord.</words>
                                </direction-type>
                        </direction>

Either the default position for word elements is above the staff, or the default-y attribute hints that it should be above the staff (placed two ledger lines above the staff).

Here is a test in MuseScore:

Screen Shot 2020-01-24 at 01 58 13

The first pizz above the staff is:

        <direction-type>
          <words relative-y="20.00">pizz.</words>
          </direction-type>

The second pizz below the staff is:

          <words default-y="-40.00" relative-x="0.95" relative-y="-24.87">pizz.</words>

So @default-y seems to indicate below if negative (but @relative-y is also present and negative).

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.1 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">
<score-partwise version="3.1">
  <work>
    <work-title>Title</work-title>
    </work>
  <identification>
    <creator type="composer">Composer</creator>
    <encoding>
      <software>MuseScore 3.3.4</software>
      <encoding-date>2020-01-24</encoding-date>
      <supports element="accidental" type="yes"/>
      <supports element="beam" type="yes"/>
      <supports element="print" attribute="new-page" type="yes" value="yes"/>
      <supports element="print" attribute="new-system" type="yes" value="yes"/>
      <supports element="stem" type="yes"/>
      </encoding>
    </identification>
  <defaults>
    <scaling>
      <millimeters>7.05556</millimeters>
      <tenths>40</tenths>
      </scaling>
    <page-layout>
      <page-height>1584</page-height>
      <page-width>1224</page-width>
      <page-margins type="even">
        <left-margin>56.6929</left-margin>
        <right-margin>56.6929</right-margin>
        <top-margin>56.6929</top-margin>
        <bottom-margin>113.386</bottom-margin>
        </page-margins>
      <page-margins type="odd">
        <left-margin>56.6929</left-margin>
        <right-margin>56.6929</right-margin>
        <top-margin>56.6929</top-margin>
        <bottom-margin>113.386</bottom-margin>
        </page-margins>
      </page-layout>
    <word-font font-family="FreeSerif" font-size="10"/>
    <lyric-font font-family="FreeSerif" font-size="11"/>
    </defaults>
  <credit page="1">
    <credit-words default-x="612" default-y="1527.31" justify="center" valign="top" font-size="24">Title</credit-words>
    </credit>
  <credit page="1">
    <credit-words default-x="1167.31" default-y="1427.31" justify="right" valign="bottom" font-size="12">Composer</credit-words>
    </credit>
  <part-list>
    <score-part id="P1">
      <part-name>Piano</part-name>
      <part-abbreviation>Pno.</part-abbreviation>
      <score-instrument id="P1-I1">
        <instrument-name>Piano</instrument-name>
        </score-instrument>
      <midi-device id="P1-I1" port="1"></midi-device>
      <midi-instrument id="P1-I1">
        <midi-channel>1</midi-channel>
        <midi-program>1</midi-program>
        <volume>78.7402</volume>
        <pan>0</pan>
        </midi-instrument>
      </score-part>
    </part-list>
  <part id="P1">
    <measure number="1" width="203.80">
      <print>
        <system-layout>
          <system-margins>
            <left-margin>0.00</left-margin>
            <right-margin>759.29</right-margin>
            </system-margins>
          <top-system-distance>170.00</top-system-distance>
          </system-layout>
        </print>
      <attributes>
        <divisions>1</divisions>
        <key>
          <fifths>0</fifths>
          </key>
        <time>
          <beats>4</beats>
          <beat-type>4</beat-type>
          </time>
        <clef>
          <sign>G</sign>
          <line>2</line>
          </clef>
        </attributes>
      <direction placement="above">
        <direction-type>
          <words relative-y="20.00">pizz.</words>
          </direction-type>
        </direction>
      <note default-x="79.27" default-y="-15.00">
        <pitch>
          <step>C</step>
          <octave>5</octave>
          </pitch>
        <duration>4</duration>
        <voice>1</voice>
        <type>whole</type>
        </note>
      </measure>
    <measure number="2" width="147.52">
      <direction placement="below">
        <direction-type>
          <words default-y="-40.00" relative-x="0.95" relative-y="-24.87">pizz.</words>
          </direction-type>
        </direction>
      <note default-x="10.00" default-y="-35.00">
        <pitch>
          <step>F</step>
          <octave>4</octave>
          </pitch>
        <duration>4</duration>
        <voice>1</voice>
        <type>whole</type>
        </note>
      <barline location="right">
        <bar-style>light-heavy</bar-style>
        </barline>
      </measure>
    </part>
  </score-partwise>