<layer>

Module
Attributes
@label, @n, @type, @xml:id
@label(optional)Captures text to be used to generate a label for the element to which it’s attached, a "tool tip" or prefatory text, for example. Should not be used to record document content. Value is plain text.
@n(optional)Provides a numeric designation that indicates an element’s position in a sequence of similar elements. Its value must be a non-negative integer. Value is a positive integer, including 0.
@type(optional)Designation which characterizes the element in some sense, using any convenient classification scheme or typology that employs single-token labels. One or more values of datatype NMTOKEN, separated by spaces.
@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 is a valid xml:id.
(MEI.shared) Attributes that form the basis of the att.common class.
(MEI.shared) Attributes that uniquely identify an element.
@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 is a valid xml:id.
(MEI.shared)
@label(optional)Captures text to be used to generate a label for the element to which it’s attached, a "tool tip" or prefatory text, for example. Should not be used to record document content. Value is plain text.
(MEI.shared) Attributes used to supply an integer number designation for an element.
@n(optional)Provides a numeric designation that indicates an element’s position in a sequence of similar elements. Its value must be a non-negative integer. Value is a positive integer, including 0.
(MEI.shared) Attributes which can be used to classify features.
@type(optional)Designation which characterizes the element in some sense, using any convenient classification scheme or typology that employs single-token labels. One or more values of datatype NMTOKEN, separated by spaces.
(MEI.visual) Visual domain attributes.
@label(optional)Captures text to be used to generate a label for the element to which it’s attached, a "tool tip" or prefatory text, for example. Should not be used to record document content. Value is plain text.
@n(optional)Provides a numeric designation that indicates an element’s position in a sequence of similar elements. Its value must be a non-negative integer. Value is a positive integer, including 0.
@type(optional)Designation which characterizes the element in some sense, using any convenient classification scheme or typology that employs single-token labels. One or more values of datatype NMTOKEN, separated by spaces.
@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 is a valid xml:id.
Member of
model.layerLikeGroups elements that function as notational layers within a staff.
Contained By
(MEI.shared) Groups elements that function as notational layers within a staff.
(MEI.shared) Groups elements that are components of a staff.
<staff>A group of equidistant horizontal lines on which notes are placed in order to represent pitch or a grouping element for individual 'strands' of notes, rests, etc. that may or may not actually be rendered on staff lines; that is, both diastematic and non-diastematic signs.
<staff>A group of equidistant horizontal lines on which notes are placed in order to represent pitch or a grouping element for individual 'strands' of notes, rests, etc. that may or may not actually be rendered on staff lines; that is, both diastematic and non-diastematic signs.
May Contain
(MEI.shared) Groups annotation-like elements.
(MEI.shared) Groups notated events that may appear at the layer level in all repertoires.
(MEI.cmn) Groups notated events that may appear at the layer level in CMN.
(MEI.cmn) Groups events that appear in CMN.
<bTrem>A rapid alternation on a single pitch or chord.
<beam>A container for a series of explicitly beamed events that begins and ends entirely within a measure.
<beatRpt>An indication that material on a preceding beat should be repeated.
<fTrem>A rapid alternation between a pair of notes (or chords or perhaps between a note and a chord) that are (usually) farther apart than a major second.
<graceGrp>A container for a sequence of grace notes.
<halfmRpt>A half-measure repeat in any meter.
<tuplet>A group of notes with "irregular" (sometimes called "irrational") rhythmic values, for example, three notes in the time normally occupied by two or nine in the time of five.
(MEI.cmn) Groups events that completely fill a CMN measure.
<mRest>Complete measure rest in any meter.
<mRpt>An indication that the previous measure should be repeated.
<multiRest>Multiple full measure rests compressed into a single bar, frequently found in performer parts.
<multiRpt>Multiple repeated measures.
(MEI.shared) Groups event elements that occur in all notational repertoires.
<chord>A simultaneous sounding of two or more notes in the same layer *with the same duration*.
<clef>Indication of the exact location of a particular note on the staff and, therefore, the other notes as well.
<clefGrp>A set of simultaneously-occurring clefs.
<note>A single pitched event.
<rest>A non-sounding event found in the source being transcribed.
<space>A placeholder used to fill an incomplete measure, layer, etc. most often so that the combined duration of the events equals the number of beats in the measure.
<tabDurSym>A visual indication of the duration of a <tabGrp>.
<tabGrp>A group of simultaneous tab notes, comparable to a <chord> in CMN. Rarely, may also contain rests, as in some "German" lute tablatures.
(MEI.shared) Groups elements that have the same function as a key signature.
(MEI.shared) Groups elements that represent a meter signature.
(MEI.shared) Groups milestone-style elements found in music notation.
<sb>An empty formatting element that forces musical notation to begin on a new line.
(MEI.shared) Groups page beginning-like elements.
<pb>An empty formatting element that forces text to begin on a new page.
<bTrem>A rapid alternation on a single pitch or chord.
<beam>A container for a series of explicitly beamed events that begins and ends entirely within a measure.
<beatRpt>An indication that material on a preceding beat should be repeated.
<fTrem>A rapid alternation between a pair of notes (or chords or perhaps between a note and a chord) that are (usually) farther apart than a major second.
<graceGrp>A container for a sequence of grace notes.
<halfmRpt>A half-measure repeat in any meter.
<mRest>Complete measure rest in any meter.
<mRpt>An indication that the previous measure should be repeated.
<multiRest>Multiple full measure rests compressed into a single bar, frequently found in performer parts.
<multiRpt>Multiple repeated measures.
<tuplet>A group of notes with "irregular" (sometimes called "irrational") rhythmic values, for example, three notes in the time normally occupied by two or nine in the time of five.
<chord>A simultaneous sounding of two or more notes in the same layer *with the same duration*.
<clef>Indication of the exact location of a particular note on the staff and, therefore, the other notes as well.
<clefGrp>A set of simultaneously-occurring clefs.
<note>A single pitched event.
<pb>An empty formatting element that forces text to begin on a new page.
<rest>A non-sounding event found in the source being transcribed.
<sb>An empty formatting element that forces musical notation to begin on a new line.
<space>A placeholder used to fill an incomplete measure, layer, etc. most often so that the combined duration of the events equals the number of beats in the measure.
<tabDurSym>A visual indication of the duration of a <tabGrp>.
<tabGrp>A group of simultaneous tab notes, comparable to a <chord> in CMN. Rarely, may also contain rests, as in some "German" lute tablatures.
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 [not available in this MEI customization] element where logical and visual information about the layer is recorded. Alternatively, the @n attribute may be used as a reference to a layerDef [not available in this MEI customization] 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.

Declaration
<elementSpec rend="add" ident="layer" module="MEI.shared">
<desc xml:lang="en">An independent stream of events on a staff.</desc>
<classes>
<memberOf key="att.basic"/>
<memberOf key="att.labelled"/>
<memberOf key="att.nInteger"/>
<memberOf key="att.typed"/>
<memberOf key="att.layer.vis"/>
<memberOf key="model.layerLike"/>
</classes>
<content>
<zeroOrMore>
<choice>
<ref name="model.annotLike"/>
<ref name="model.appLike"/>
<ref name="model.editLike"/>
<ref name="model.layerPart"/>
<ref name="divLine"/>
</choice>
</zeroOrMore>
</content>
<remarks xml:lang="en">
<p>The term 'layer' is used instead of 'voice' in order to avoid confusion between 'voice' and 'voice leading' and 'voicing'. The <att>def</att> attribute may be used to create a connection with a <gi scheme="MEI">layerDef</gi> element where logical and visual information about the layer is recorded. Alternatively, the <att>n</att> attribute may be used as a reference to a <gi scheme="MEI">layerDef</gi> element with the same value in its <att>n</att> attribute. If neither <att>def</att> nor <att>n</att> attributes are present, then encoding order of the layers is presumed to match the encoding order of the layer definitions.</p>
</remarks>
</elementSpec>