att.instrumentIdent

Attributes which identify a MIDI instrument.
Module
Attributes
@instr
@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.
@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.
MIDI component declarations.
@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.
Available at
<chord>A simultaneous sounding of two or more notes in the same layer *with the same duration*.
<layerDef>Container for layer meta-information.
<nc>Sign representing a single pitched event, although the exact pitch may not be known.
<note>A single pitched event.
<staffDef>Container for staff meta-information.
<staffGrp>A group of bracketed or braced staves.
Neume repertoire component declarations.
<nc>Sign representing a single pitched event, although the exact pitch may not be known.
Component declarations that are shared between two or more modules.
<chord>A simultaneous sounding of two or more notes in the same layer *with the same duration*.
<layerDef>Container for layer meta-information.
<note>A single pitched event.
<staffDef>Container for staff meta-information.
<staffGrp>A group of bracketed or braced staves.
Constraints

@instr attribute should have content.
The value in @instr should correspond to the @xml:id attribute of an instrDef element.

Declaration
<classSpec ident="att.instrumentIdent" module="MEI.midi" type="atts">
<desc xml:lang="en">Attributes which identify a MIDI instrument.</desc>
<attList>
<attDef ident="instr" usage="opt">
<desc xml:lang="en">Provides a way of pointing to a MIDI instrument definition. It must contain the ID of an
<gi scheme="MEI">instrDef</gi>
element elsewhere in the document.</desc>
<datatype>
<rng:ref name="data.URI"/>
</datatype>
<constraintSpec ident="check_instrTarget" scheme="schematron">
<constraint>
<sch:rule context="@instr">
<sch:assert role="warning" test="not(normalize-space(.) eq '')">@instr attribute should have content.</sch:assert>
<sch:assert role="warning" test="every $i in tokenize(., '\s+') satisfies substring($i,2)=//mei:instrDef/@xml:id">The value in @instr should correspond to the @xml:id attribute of an instrDef element.</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
</attDef>
</attList>
</classSpec>