<instrDef>

(instrument definition) – MIDI instrument declaration.
Module
Attributes
@azimuth, @elevation, @label, @midi.channel, @midi.duty, @midi.instrname, @midi.instrnum, @midi.pan, @midi.patchname, @midi.patchnum, @midi.port, @midi.track, @midi.volume, @n, @type, @xml:id
@azimuth(optional)The lateral or left-to-right plane. Value conforms to data.DEGREES.
@elevation(optional)The above-to-below axis. Value conforms to data.DEGREES.
@label(optional)Captures text to be used to generate a label for the element to which it’s attached, a "tool tip" or prefatory text, for example. Should not be used to record document content. Value is plain text.
@midi.channel(optional)Records a MIDI channel value. Value conforms to data.MIDICHANNEL.
@midi.duty(optional)Specifies the 'on' part of the duty cycle as a percentage of a note’s duration. Value conforms to data.PERCENT.LIMITED.
@midi.instrname(optional)Provides a General MIDI label for the MIDI instrument. Value conforms to data.MIDINAMES.
@midi.instrnum(optional)Captures the General MIDI instrument number. Use an integer for a 0-based value. Value conforms to data.MIDIVALUE.
@midi.pan(optional)Sets the instrument’s position in a stereo field. MIDI values of 0 and 1 both pan left, 127 or 128 pans right, and 63 or 64 pans to the center. Positve percentage values pan to the right, negative ones to the left. 0% is centered. Value conforms to data.MIDIVALUE_PAN.
@midi.patchname(optional)Records a non-General MIDI patch/instrument name. Value is a NMTOKEN.
@midi.patchnum(optional)Records a non-General MIDI patch/instrument number. Value conforms to data.MIDIVALUE.
@midi.port(optional)Sets the MIDI port value. Value conforms to data.MIDIVALUE_NAME.
@midi.track(optional)Sets the MIDI track. Value is a positive integer.
@midi.volume(optional)Sets the instrument’s volume. Value conforms to data.MIDIVALUE_PERCENT.
@n(optional)Provides a numeric designation that indicates an element’s position in a sequence of similar elements. Its value must be a non-negative integer. Value is a positive integer, including 0.
@type(optional)Designation which characterizes the element in some sense, using any convenient classification scheme or typology that employs single-token labels. One or more values of datatype NMTOKEN, separated by spaces.
@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 is a valid xml:id.
(MEI.shared) Attributes that form the basis of the att.common class.
(MEI.shared) Attributes that uniquely identify an element.
@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 is a valid xml:id.
(MEI.shared)
@label(optional)Captures text to be used to generate a label for the element to which it’s attached, a "tool tip" or prefatory text, for example. Should not be used to record document content. Value is plain text.
(MEI.shared) Attributes used to supply an integer number designation for an element.
@n(optional)Provides a numeric designation that indicates an element’s position in a sequence of similar elements. Its value must be a non-negative integer. Value is a positive integer, including 0.
(MEI.shared) Attributes which can be used to classify features.
@type(optional)Designation which characterizes the element in some sense, using any convenient classification scheme or typology that employs single-token labels. One or more values of datatype NMTOKEN, separated by spaces.
(MEI.gestural) Gestural domain attributes.
(MEI.midi) Attributes that record MIDI channel information.
@midi.channel(optional)Records a MIDI channel value. Value conforms to data.MIDICHANNEL.
@midi.duty(optional)Specifies the 'on' part of the duty cycle as a percentage of a note’s duration. Value conforms to data.PERCENT.LIMITED.
@midi.port(optional)Sets the MIDI port value. Value conforms to data.MIDIVALUE_NAME.
@midi.track(optional)Sets the MIDI track. Value is a positive integer.
(MEI.midi) Attributes that record MIDI instrument information.
@midi.instrnum(optional)Captures the General MIDI instrument number. Use an integer for a 0-based value. Value conforms to data.MIDIVALUE.
@midi.instrname(optional)Provides a General MIDI label for the MIDI instrument. Value conforms to data.MIDINAMES.
@midi.pan(optional)Sets the instrument’s position in a stereo field. MIDI values of 0 and 1 both pan left, 127 or 128 pans right, and 63 or 64 pans to the center. Positve percentage values pan to the right, negative ones to the left. 0% is centered. Value conforms to data.MIDIVALUE_PAN.
@midi.patchname(optional)Records a non-General MIDI patch/instrument name. Value is a NMTOKEN.
@midi.patchnum(optional)Records a non-General MIDI patch/instrument number. Value conforms to data.MIDIVALUE.
@midi.volume(optional)Sets the instrument’s volume. Value conforms to data.MIDIVALUE_PERCENT.
(MEI.gestural) Attributes that locate a sound source within 3-D space.
@azimuth(optional)The lateral or left-to-right plane. Value conforms to data.DEGREES.
@elevation(optional)The above-to-below axis. Value conforms to data.DEGREES.
(MEI.midi) Logical domain attributes.
@azimuth(optional)The lateral or left-to-right plane. Value conforms to data.DEGREES.
@elevation(optional)The above-to-below axis. Value conforms to data.DEGREES.
@midi.channel(optional)Records a MIDI channel value. Value conforms to data.MIDICHANNEL.
@midi.duty(optional)Specifies the 'on' part of the duty cycle as a percentage of a note’s duration. Value conforms to data.PERCENT.LIMITED.
@midi.instrname(optional)Provides a General MIDI label for the MIDI instrument. Value conforms to data.MIDINAMES.
@midi.instrnum(optional)Captures the General MIDI instrument number. Use an integer for a 0-based value. Value conforms to data.MIDIVALUE.
@midi.pan(optional)Sets the instrument’s position in a stereo field. MIDI values of 0 and 1 both pan left, 127 or 128 pans right, and 63 or 64 pans to the center. Positve percentage values pan to the right, negative ones to the left. 0% is centered. Value conforms to data.MIDIVALUE_PAN.
@midi.patchname(optional)Records a non-General MIDI patch/instrument name. Value is a NMTOKEN.
@midi.patchnum(optional)Records a non-General MIDI patch/instrument number. Value conforms to data.MIDIVALUE.
@midi.port(optional)Sets the MIDI port value. Value conforms to data.MIDIVALUE_NAME.
@midi.track(optional)Sets the MIDI track. Value is a positive integer.
@midi.volume(optional)Sets the instrument’s volume. Value conforms to data.MIDIVALUE_PERCENT.
@label(optional)Captures text to be used to generate a label for the element to which it’s attached, a "tool tip" or prefatory text, for example. Should not be used to record document content. Value is plain text.
@n(optional)Provides a numeric designation that indicates an element’s position in a sequence of similar elements. Its value must be a non-negative integer. Value is a positive integer, including 0.
@type(optional)Designation which characterizes the element in some sense, using any convenient classification scheme or typology that employs single-token labels. One or more values of datatype NMTOKEN, separated by spaces.
@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 is a valid xml:id.
Member of
model.instrDefLikeGroups elements used to declare a MIDI instrument.
Contained By
(MEI.shared) Groups elements used to declare a MIDI instrument.
<staffDef>Container for staff meta-information.
<staffGrp>(staff group) – A group of bracketed or braced staves.
<staffDef>Container for staff meta-information.
<staffGrp>(staff group) – A group of bracketed or braced staves.
May Contain
(<instrDef> may not have child elements)
Remarks

This element provides a starting or default instrument declaration for a staff, a group of staves, or a layer. Following scoreDef, staffDef, layerDef, or MIDI prog elements may then change the instrument as necessary.

Declaration
<elementSpec rend="add" ident="instrDef" module="MEI.midi">
<gloss xml:lang="en">instrument definition</gloss>
<desc xml:lang="en">MIDI instrument declaration.</desc>
<classes>
<memberOf key="att.basic"/>
<memberOf key="att.labelled"/>
<memberOf key="att.nInteger"/>
<memberOf key="att.typed"/>
<memberOf key="att.instrDef.ges"/>
<memberOf key="att.instrDef.log"/>
<memberOf key="model.instrDefLike"/>
</classes>
<content>
<empty/>
</content>
<remarks xml:lang="en">
<p>This element provides a starting or default instrument declaration for a staff, a group of staves, or a layer. Following scoreDef, staffDef, layerDef, or MIDI prog elements may then change the instrument as necessary.</p>
</remarks>
</elementSpec>