<layerDef>

<layerDef> (layer definition) – Container for layer meta-information.
Module MEI.shared
Attributes
@beam.color (optional) Color of beams, including those associated with tuplets. Value conforms to data.COLOR . att.beaming.vis
@beam.group (optional) Provides an example of how automated beaming (including secondary beams) is to be performed. Value of datatype string. att.beaming.log
@beam.rend (optional) Encodes whether a beam is "feathered" and in which direction. Allowed values are: " acc" (Beam lines grow farther apart from left to right.), " rit" (Beam lines grow closer together from left to right.), " norm" (Beam lines are equally-spaced over the entire length of the beam.) att.beaming.vis
@beam.rests (optional) Indicates whether automatically-drawn beams should include rests shorter than a quarter note duration. Value conforms to data.BOOLEAN . att.beaming.log
@beam.slope (optional) Captures beam slope. Value of datatype decimal. att.beaming.vis
@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
@dur.default (optional) Contains a default duration in those situations when the first note, rest, chord, etc. in a measure does not have a duration specified. Value conforms to data.DURATION . att.duration.default
@instr (optional) Provides a way of pointing to a MIDI instrument definition. It must contain the ID of an <instrDef> element elsewhere in the document. Value conforms to data.URI . att.instrumentident
@label (optional) Provides a name or label for an element. The value may be any string. Value of datatype string. att.commonPart
@label.abbr (optional) Provides a label for a group of staves on pages after the first page. Usually, this label takes an abbreviated form. Value of datatype string. att.labels.addl
@n (optional) A non-negative integer value functioning as a "name". Value of datatype nonNegativeInteger. layerDef
@num.default (optional) Along with numbase.default, describes the default duration as a ratio. num.default is the first value in the ratio. Value of datatype positiveInteger. att.duration.default
@numbase.default (optional) Along with num.default, describes the default duration as a ratio. numbase.default is the second value in the ratio. Value of datatype positiveInteger. att.duration.default
@octave.default (optional) Contains a default octave specification for use when the first note, rest, chord, etc. in a measure does not have an octave value specified. Value conforms to data.OCTAVE . att.octavedefault
@text.fam (optional) Provides a default value for the font family name of text (other than lyrics) when this information is not provided on the individual elements. Value conforms to data.FONTFAMILY . att.textstyle
@text.name (optional) Provides a default value for the font name of text (other than lyrics) when this information is not provided on the individual elements. Value conforms to data.FONTNAME . att.textstyle
@text.size (optional) Provides a default value for the font size of text (other than lyrics) when this information is not provided on the individual elements. Value conforms to data.FONTSIZE . att.textstyle
@text.style (optional) Provides a default value for the font style of text (other than lyrics) when this information is not provided on the individual elements. Value conforms to data.FONTSTYLE . att.textstyle
@text.weight (optional) Provides a default value for the font weight for text (other than lyrics) when this information is not provided on the individual elements. Value conforms to data.FONTWEIGHT . att.textstyle
@trans.diat (optional) Records the amount of diatonic pitch shift, e.g., C to C♯ = 0, C to D♭ = 1, necessary to calculate the sounded pitch from the written one. Value of datatype decimal. att.transposition
@trans.semi (optional) Records the amount of pitch shift in semitones, e.g., C to C♯ = 1, C to D♭ = 1, necessary to calculate the sounded pitch from the written one. Value of datatype decimal. att.transposition
@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
@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.shared layerDef staffDef
May contain
MEI.midi instrDef
MEI.shared label
Declaration
<classes>
<memberOf key= " att.commonPart" />
<memberOf key= " att.declaring" />
<memberOf key= " att.layerDef.log" />
<memberOf key= " att.layerDef.vis" />
<memberOf key= " att.layerDef.ges" />
<memberOf key= " att.layerDef.anl" />
<memberOf key= " model.layerDefLike" />
</classes>
<content>
<rng:zeroOrMore>
<rng:ref name= " model.labelLike" />
</rng:zeroOrMore>
<rng:zeroOrMore>
<rng:ref name= " model.instrDefLike" />
</rng:zeroOrMore>
</content>

MEI Guidelines Version 3.0.0

MEI Elements