MusicXML 4.1 Draft
< >elements
@attributes
MusicXML 4.1 Draft>Examples><rest> and <display-step>

<rest> and <display-step>

rest-and-display-step-elements

The red squares highlight the display step associated with each rest symbol.

<?xml version="1.0" encoding="UTF-8"?>
<score-partwise version="4.1">
  <identification>
    <miscellaneous>
      <miscellaneous-field name="description">All different rest lengths with
          different clefs and explicit display-step placements, including ambiguous
          placements within staff spaces instead of lines.</miscellaneous-field>
    </miscellaneous>
  </identification>
  <part-list>
    <score-part id="P1">
      <part-name></part-name>
    </score-part>
  </part-list>
  <part id="P1">
    <measure number="1">
      <print new-system="yes"/>
      <attributes>
        <clef>
          <sign>G</sign>
          <line>2</line>
        </clef>
      </attributes>
      <note>
        <rest>
          <display-step>G</display-step>
          <display-octave>4</display-octave>
        </rest>
        <duration>2048</duration>
        <voice>1</voice>
        <type>whole</type>
      </note>
    </measure>
    <measure number="2">
      <note>
        <rest>
          <display-step>G</display-step>
          <display-octave>4</display-octave>
        </rest>
        <duration>1024</duration>
        <voice>1</voice>
        <type>half</type>
      </note>
      <note>
        <rest>
          <display-step>F</display-step>
          <display-octave>5</display-octave>
        </rest>
        <duration>512</duration>
        <voice>1</voice>
        <type>quarter</type>
      </note>
      <note>
        <rest>
          <display-step>E</display-step>
          <display-octave>5</display-octave>
        </rest>
        <duration>256</duration>
        <voice>1</voice>
        <type>eighth</type>
      </note>
      <note>
        <rest>
          <display-step>D</display-step>
          <display-octave>5</display-octave>
        </rest>
        <duration>128</duration>
        <voice>1</voice>
        <type>16th</type>
      </note>
      <note>
        <rest>
          <display-step>C</display-step>
          <display-octave>5</display-octave>
        </rest>
        <duration>64</duration>
        <voice>1</voice>
        <type>32nd</type>
      </note>
      <note>
        <rest>
          <display-step>B</display-step>
          <display-octave>4</display-octave>
        </rest>
        <duration>32</duration>
        <voice>1</voice>
        <type>64th</type>
      </note>
      <note>
        <rest>
          <display-step>A</display-step>
          <display-octave>4</display-octave>
        </rest>
        <duration>16</duration>
        <voice>1</voice>
        <type>128th</type>
      </note>
      <note>
        <rest>
          <display-step>G</display-step>
          <display-octave>4</display-octave>
        </rest>
        <duration>8</duration>
        <voice>1</voice>
        <type>256th</type>
      </note>
      <note>
        <rest>
          <display-step>F</display-step>
          <display-octave>4</display-octave>
        </rest>
        <duration>4</duration>
        <voice>1</voice>
        <type>512th</type>
      </note>
      <note>
        <rest>
          <display-step>E</display-step>
          <display-octave>4</display-octave>
        </rest>
        <duration>2</duration>
        <voice>1</voice>
        <type>1024th</type>
      </note>
      <note>
        <rest>
          <display-step>D</display-step>
          <display-octave>4</display-octave>
        </rest>
        <duration>2</duration>
        <voice>1</voice>
        <type>1024th</type>
      </note>
    </measure>
  </part>
</score-partwise>