You are here: MusicXML Reference > Score Schema (XSD) > Complex Types > Complex Type: pitch

Complex Type: pitch

Description

Pitch is represented as a combination of the step of the diatonic scale, the chromatic alteration, and the octave.

Derived By

Restricting xs:anyType

Content Model

Contains elements as defined in the following table.

Component  Type  Occurs  Default  Description 
  1..1 
step  step  1..1  The step type represents a step of the diatonic scale, represented using the English letters A through G.
alter  semitones  0..1 

The alter element represents chromatic alteration in number of semitones (e.g., -1 for flat, 1 for sharp). Decimal values like 0.5 (quarter tone sharp) are used for microtones. The octave element is represented by the numbers 0 to 9, where 4 indicates the octave started by middle C.  In the first example below, notice an accidental element is used for the third note, rather than the alter element, because the pitch is not altered from the the pitch designated to that staff position by the key signature.

octave  octave  1..1  Octaves are represented by the numbers 0 to 9, where 4 indicates the octave started by middle C.
Referenced By
Definition
<xs:complexType name="pitch">
  <xs:annotation>
    <xs:documentation>Pitch is represented as a combination of the step of the diatonic scale, the chromatic alteration, and the octave.</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="step" type="step">
      <xsd:annotation>
        <xsd:documentation>The step type represents a step of the diatonic scale, represented using the English letters A through G.</xsd:documentation>
      </xsd:annotation>
    </xs:element>
    <xs:element name="alter" type="semitones" minOccurs="0">
      <xsd:annotation>
        <xsd:documentation>The alter element represents chromatic alteration in number of semitones (e.g., -1 for flat, 1 for sharp). Decimal values like 0.5 (quarter tone sharp) are used for microtones. The octave element is represented by the numbers 0 to 9, where 4 indicates the octave started by middle C.

In the example below, notice an accidental element is used for the third note, rather than the alter element, because the pitch is not altered from the the pitch designated to that staff position by the key signature. </xsd:documentation>
      </xsd:annotation>
    </xs:element>
    <xs:element name="octave" type="octave">
      <xsd:annotation>
        <xsd:documentation>Octaves are represented by the numbers 0 to 9, where 4 indicates the octave started by middle C.</xsd:documentation>
      </xsd:annotation>
    </xs:element>
  </xs:sequence>
</xs:complexType>

 

MusicXML Documentation Home
Last built 2/20/2015

7007 Winchester Circle, Suite 140

Boulder, CO 80301