<layer>

An independent stream of events on a staff.
Module MEI.shared
Attributes
@copyof(optional)Points to an element of which the current element is a copy. Value conforms to data.URI. att.common.anl
@corresp(optional)Used to point to other elements that correspond to this one in a generic fashion. One or more values from data.URI, separated by spaces. att.common.anl
@decls(optional)Identifies one or more metadata elements within the header, which are understood to apply to the element bearing this attribute and its content. One or more values from data.URI, separated by spaces. att.declaring
@def(optional)Provides a mechanism for linking the layer to a layerDef element. Value conforms to data.URI. att.layer.log
@facs(optional)Permits the current element to reference a facsimile surface or image zone which corresponds to it. One or more values from data.URI, separated by spaces. att.facsimile
@label(optional)Provides a name or label for an element. The value may be any string. Value of datatype string. att.commonPart
@metcon(optional)Indicates the relationship between the content of a staff or layer and the prevailing meter. Allowed values are: "c" (Complete; i.e., conformant with the prevailing meter.), "i" (Incomplete; i.e., not enough beats.), "o" (Overfull; i.e., too many beats.)att.meterconformance
@n(optional)A non-negative integer value functioning as a "name". Value of datatype nonNegativeInteger. layer
@next(optional)Used to point to the next event(s) in a user-defined collection. One or more values from data.URI, separated by spaces. att.common.anl
@prev(optional)Points to the previous event(s) in a user-defined collection. One or more values from data.URI, separated by spaces. att.common.anl
@sameas(optional)Points to an element that is the same as the current element but is not a literal copy of the current element. One or more values from data.URI, separated by spaces. att.common.anl
@synch(optional)Points to elements that are synchronous with the current element. One or more values from data.URI, separated by spaces. att.common.anl
@visible(optional)Indicates if a feature should be rendered when the notation is presented graphically or sounded when it is presented in an aural form. Value conforms to data.BOOLEAN. att.visibility
@when(optional)Indicates the point of occurrence of this feature along a time line. Its value must be the ID of a when element elsewhere in the document. Value conforms to data.URI. att.alignment
@xml:base(optional)Provides a base URI reference with which applications can resolve relative URI references into absolute URI references. Value conforms to data.URI. att.commonPart
@xml: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. Value of datatype ID. att.id
Member of
Contained by
MEI.cmnossia
MEI.critapplem rdg
MEI.sharedstaff
May contain
Declaration
<classes>
<memberOf key="att.commonPart"/>
<memberOf key="att.declaring"/>
<memberOf key="att.facsimile"/>
<memberOf key="att.layer.log"/>
<memberOf key="att.layer.vis"/>
<memberOf key="att.layer.ges"/>
<memberOf key="att.layer.anl"/>
<memberOf key="model.layerLike"/>
</classes>
<content>
<rng:zeroOrMore>
<rng:choice>
<rng:ref name="model.appLike" />
<rng:ref name="model.divLike" />
<rng:ref name="model.milestoneLike.music" />
<rng:ref name="model.annotLike" />
<rng:ref name="model.graphicprimitiveLike" />
<rng:ref name="model.editLike" />
<rng:ref name="model.transcriptionLike" />
<rng:ref name="model.layerPart" />
</rng:choice>
</rng:zeroOrMore>
</content>
Remarks

The term 'layer' is used instead of 'voice' in order to avoid confusion between 'voice' and 'voice leading' and 'voicing'. The def attribute may be used to create a connection with a layerDef element where logical and visual information about the layer is recorded. Alternatively, the n attribute may be used as a reference to a layerDef element with the same value in its n attribute. If neither def nor n attributes are present, then encoding order of the layers is presumed to match the encoding order of the layer definitions.