mei:key

Key captures information about tonal center and mode.

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
accid mei:mei_data.ACCIDENTAL.EXPLICIT optional
Captures a written accidental.
analog xs:string optional
Contains a reference to a field or element in another descriptive encoding
system to which this MEI element is comparable.
label xs:string optional
Provides a name or label for an element. The value may be any
string.
mode mei:mei_data.MODE optional
Indicates major, minor, or other tonality.
n optional
Provides a number-like designation for an element.
pname mei:mei_data.PITCHNAME optional
Contains a written pitch name.
sig mei:mei_data.KEYSIGNATURE optional
Indicates where the key lies in the circle of fifths.
sig.mixed restriction of list of mei:mei_data.KEYSIGTOKEN optional
Mixed key signatures, e.g. those consisting of a mixture of flats and
sharps (Read, p. 143, ex. 9-39), and key signatures with unorthodox placement of the
accidentals (Read, p. 141) must be indicated by setting the key.sig attribute to 'mixed'
and providing explicit key signature information in the key.sig.mixed attribute or in the
<keySig> element. It is intended that key.sig.mixed contain a series of tokens with
each token containing pitch name, accidental, and octave, such as 'a4 c5s e5f' that
indicate what key accidentals should be rendered and where they should be
placed.
xml:base mei:mei_data.URI optional
Provides a base URI reference with which applications can resolve relative
URI references into absolute URI references.
xml:id xs:ID optional
Regularizes the naming of an element and thus facilitates building links
between it and other resources. Each id attribute within a document must have a unique
value.

Used By

Source

<xs:element name="key" substitutionGroup="mei:mei_model.workIdent">
  <xs:annotation>
    <xs:documentation>Key captures information about tonal center and mode.</xs:documentation>
  </xs:annotation>
  <xs:complexType mixed="true">
    <xs:attributeGroup ref="mei:mei_att.common.attributes"/>
    <xs:attributeGroup ref="mei:mei_att.bibl.attributes"/>
    <xs:attributeGroup ref="mei:mei_att.keySig.log.attributes"/>
  </xs:complexType>
</xs:element>

Sample