att.midiInstrument

Attributes that record MIDI instrument information.
Module
Attributes
@midi.instrname, @midi.instrnum, @midi.pan, @midi.patchname, @midi.patchnum, @midi.volume
@midi.instrname(optional)Provides a General MIDI label for the MIDI instrument.
@midi.instrnum(optional)Captures the General MIDI instrument number. Use an integer for a 0-based value. Use an integer followed by an "o" (oh) for a 1-based value.
@midi.pan(optional)Sets the instrument’s position in a stereo field. Values of 0 and 1 both pan left, 127 and 128o both pan right, and 63 and 64o both pan to the center. Positive percentage values pan to the right, negative ones to the left, and 0% pans to the center.
@midi.patchname(optional)Records a non-General MIDI patch/instrument name.
@midi.patchnum(optional)Records a non-General MIDI patch/instrument number.
@midi.volume(optional)Sets the instrument’s volume.
@midi.instrnum(optional)Captures the General MIDI instrument number. Use an integer for a 0-based value. Use an integer followed by an "o" (oh) for a 1-based value.
@midi.instrname(optional)Provides a General MIDI label for the MIDI instrument.
@midi.pan(optional)Sets the instrument’s position in a stereo field. Values of 0 and 1 both pan left, 127 and 128o both pan right, and 63 and 64o both pan to the center. Positive percentage values pan to the right, negative ones to the left, and 0% pans to the center.
@midi.patchname(optional)Records a non-General MIDI patch/instrument name.
@midi.patchnum(optional)Records a non-General MIDI patch/instrument number.
@midi.volume(optional)Sets the instrument’s volume.
@midi.instrname(optional)Provides a General MIDI label for the MIDI instrument.
@midi.instrnum(optional)Captures the General MIDI instrument number. Use an integer for a 0-based value. Use an integer followed by an "o" (oh) for a 1-based value.
@midi.pan(optional)Sets the instrument’s position in a stereo field. Values of 0 and 1 both pan left, 127 and 128o both pan right, and 63 and 64o both pan to the center. Positive percentage values pan to the right, negative ones to the left, and 0% pans to the center.
@midi.patchname(optional)Records a non-General MIDI patch/instrument name.
@midi.patchnum(optional)Records a non-General MIDI patch/instrument number.
@midi.volume(optional)Sets the instrument’s volume.
Available at
<instrDef>MIDI instrument declaration.
<instrDef>MIDI instrument declaration.
Constraints

Only one of @midi.instrname and @midi.instrnum allowed.
Only one of @midi.patchname and @midi.patchnum allowed.

Declaration
<classSpec xmlns="http://www.tei-c.org/ns/1.0" rend="add" ident="att.midiInstrument" module="MEI.midi" type="atts">
<desc xml:lang="en">Attributes that record MIDI instrument information.</desc>
<constraintSpec ident="One_of_instrname_or_instrnum" scheme="schematron">
<constraint>
<sch:rule context="mei:*[@midi.instrname]">
<sch:assert test="not(@midi.instrnum)">Only one of @midi.instrname and @midi.instrnum allowed.</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
<constraintSpec ident="One_of_patchname_or_patchnum" scheme="schematron">
<constraint>
<sch:rule context="mei:*[@midi.patchname]">
<sch:assert test="not(@midi.patchnum)">Only one of @midi.patchname and @midi.patchnum allowed.</sch:assert>
</sch:rule>
</constraint>
</constraintSpec>
<attList>
<attDef ident="midi.instrnum" usage="opt">
<desc xml:lang="en">Captures the General MIDI instrument number. Use an integer for a 0-based value. Use an integer followed by an "o" (oh) for a 1-based value.</desc>
<datatype>
<dataRef key="data.MIDIVALUE"/>
</datatype>
</attDef>
<attDef ident="midi.instrname" usage="opt">
<desc xml:lang="en">Provides a General MIDI label for the MIDI instrument.</desc>
<datatype>
<dataRef key="data.MIDINAMES"/>
</datatype>
</attDef>
<attDef ident="midi.pan" usage="opt">
<desc xml:lang="en">Sets the instrument’s position in a stereo field. Values of 0 and 1 both pan left, 127 and 128o both pan right, and 63 and 64o both pan to the center. Positive percentage values pan to the right, negative ones to the left, and 0% pans to the center.</desc>
<datatype>
<dataRef key="data.MIDIVALUE_PAN"/>
</datatype>
</attDef>
<attDef ident="midi.patchname" usage="opt">
<desc xml:lang="en">Records a non-General MIDI patch/instrument name.</desc>
<datatype>
<dataRef name="NMTOKEN"/>
</datatype>
</attDef>
<attDef ident="midi.patchnum" usage="opt">
<desc xml:lang="en">Records a non-General MIDI patch/instrument number.</desc>
<datatype>
<dataRef key="data.MIDIVALUE"/>
</datatype>
</attDef>
<attDef ident="midi.volume" usage="opt">
<desc xml:lang="en">Sets the instrument’s volume.</desc>
<datatype>
<dataRef key="data.MIDIVALUE_PERCENT"/>
</datatype>
</attDef>
</attList>
</classSpec>