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.
<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.graphicPrimitiveLike"/>
<ref name="model.layerPart"/>
<ref name="model.milestoneLike.music"/>
<ref name="model.transcriptionLike"/>
<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>