att.instrumentIdent

Attributes which identify a MIDI instrument.
Module
MEI.midi
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
chordA simultaneous sounding of two or more notes in the same layer *with the same duration*.
layerDef(layer definition) – Container for layer meta-information.
ncSign representing a single pitched event, although the exact pitch may not be known.
noteA single pitched event.
staffDef(staff definition) – Container for staff meta-information.
staffGrp(staff group) – A group of bracketed or braced staves.
Neume repertoire component declarations.
ncSign representing a single pitched event, although the exact pitch may not be known.
Component declarations that are shared between two or more modules.
chordA simultaneous sounding of two or more notes in the same layer *with the same duration*.
layerDef(layer definition) – Container for layer meta-information.
noteA single pitched event.
staffDef(staff definition) – Container for staff meta-information.
staffGrp(staff group) – 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>Attributes which identify a MIDI instrument.</desc>
<attList>
<attDef ident="instr" usage="opt">
<desc>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="isoschematron">
<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>