clef

Clefs are represented by a combination of sign, line, and clef-octave-change elements. The optional number attribute refers to staff numbers within the part. A value of 1 is assumed if not present.

Sometimes clefs are added to the staff in non-standard line positions, either to indicate cue passages, or when there are multiple clefs present simultaneously on one staff. In this situation, the additional attribute is set to "yes" and the line value is ignored. The size attribute is used for clefs where the additional attribute is "yes". It is typically used to indicate cue clefs.

Complex Type Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
additional yes-no optional
color color optional
default-x tenths optional
default-y tenths optional
font-family comma-separated-text optional
font-size font-size optional
font-style font-style optional
font-weight font-weight optional
number staff-number optional
print-object yes-no optional
relative-x tenths optional
relative-y tenths optional
size symbol-size optional

Used By

Element attributes/clef

Source

<xs:complexType name="clef">
  <xs:annotation>
    <xs:documentation>Clefs are represented by a combination of sign, line, and clef-octave-change elements. The optional number attribute refers to staff numbers within the part. A value of 1 is assumed if not present. Sometimes clefs are added to the staff in non-standard line positions, either to indicate cue passages, or when there are multiple clefs present simultaneously on one staff. In this situation, the additional attribute is set to "yes" and the line value is ignored. The size attribute is used for clefs where the additional attribute is "yes". It is typically used to indicate cue clefs.</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="sign" type="clef-sign">
      <xs:annotation>
        <xs:documentation>The sign element represents the clef symbol.</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="line" type="staff-line" minOccurs="0">
      <xs:annotation>
        <xs:documentation>Line numbers are counted from the bottom of the staff. Standard values are 2 for the G sign (treble clef), 4 for the F sign (bass clef), 3 for the C sign (alto clef) and 5 for TAB (on a 6-line staff).</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="clef-octave-change" type="xs:integer" minOccurs="0">
      <xs:annotation>
        <xs:documentation>The clef-octave-change element is used for transposing clefs. A treble clef for tenors would have a value of -1.</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>
  <xs:attribute name="number" type="staff-number"/>
  <xs:attribute name="additional" type="yes-no"/>
  <xs:attribute name="size" type="symbol-size"/>
  <xs:attributeGroup ref="print-style"/>
  <xs:attributeGroup ref="print-object"/>
</xs:complexType>