(instrument definition) – MIDI instrument declaration.
Module MEI.midi
@label(optional)Provides a name or label for an element. The value may be any string. Value of datatype string. att.commonPart
@midi.channel(optional)Records a MIDI channel value. Value conforms to data.MIDICHANNEL. att.channelized
@midi.duty(optional)Specifies the 'on' part of the duty cycle as a percentage of a note's duration. Value conforms to data.PERCENT. att.channelized
@midi.instrname(optional)Provides a General MIDI label for the MIDI instrument. Value conforms to data.MIDINAMES. att.midiinstrument
@midi.instrnum(optional)Sets the MIDI instrument number. Value conforms to data.MIDIVALUE. att.midiinstrument
@midi.pan(optional)Sets the instrument's position in a stereo field. Values of 0 and 1 both pan left, 127 pans right, and 64 pans to the center. Value conforms to data.MIDIVALUE. att.midiinstrument
@midi.port(optional)Sets the MIDI port value. Value conforms to data.MIDIVALUE. att.channelized
@midi.track(optional)Sets the MIDI track. Value of datatype positiveInteger. att.channelized
@midi.volume(optional)Sets the instrument's volume. Value conforms to data.MIDIVALUE. att.midiinstrument
@n(optional)Provides a number-like designation for an element. Value conforms to token. att.common
@xml:base(optional)Provides a base URI reference with which applications can resolve relative URI references into absolute URI references. Value conforms to data.URI. att.commonPart
@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 of datatype ID. att.id
Member of
Contained by
May contain
<memberOf key="att.common"/>
<memberOf key="att.channelized"/>
<memberOf key="att.midiinstrument"/>
<memberOf key="model.instrDefLike"/>

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.