Package org.audiveris.proxymusic
Class MidiDevice
java.lang.Object
org.audiveris.proxymusic.MidiDevice
The midi-device type corresponds to the DeviceName meta event in Standard MIDI Files. The optional port attribute is a number from 1 to 16 that can be used with the unofficial MIDI 1.0 port (or cable) meta event. Unlike the DeviceName meta event, there can be multiple midi-device elements per MusicXML part. The optional id attribute refers to the score-instrument assigned to this device. If missing, the device assignment affects all score-instrument elements in the score-part.
Java class for midi-device complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="midi-device">
<simpleContent>
<extension base="<http://www.w3.org/2001/XMLSchema>string">
<attribute name="port" type="{}midi-16" />
<attribute name="id" type="{http://www.w3.org/2001/XMLSchema}IDREF" />
</extension>
</simpleContent>
</complexType>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Gets the value of the id property.getPort()Gets the value of the port property.getValue()Gets the value of the value property.voidSets the value of the id property.voidSets the value of the port property.voidSets the value of the value property.
-
Field Details
-
value
-
port
-
id
-
-
Constructor Details
-
MidiDevice
public MidiDevice()
-
-
Method Details
-
getValue
Gets the value of the value property.- Returns:
- possible object is
String
-
setValue
Sets the value of the value property.- Parameters:
value- allowed object isString
-
getPort
Gets the value of the port property.- Returns:
- possible object is
Integer
-
setPort
Sets the value of the port property.- Parameters:
value- allowed object isInteger
-
getId
Gets the value of the id property.- Returns:
- possible object is
Object
-
setId
Sets the value of the id property.- Parameters:
value- allowed object isObject
-