Class MidiDevice

java.lang.Object
org.audiveris.proxymusic.MidiDevice

public class MidiDevice extends Object
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 Details

  • Constructor Details

    • MidiDevice

      public MidiDevice()
  • Method Details

    • getValue

      public String getValue()
      Gets the value of the value property.
      Returns:
      possible object is String
    • setValue

      public void setValue(String value)
      Sets the value of the value property.
      Parameters:
      value - allowed object is String
    • getPort

      public Integer getPort()
      Gets the value of the port property.
      Returns:
      possible object is Integer
    • setPort

      public void setPort(Integer value)
      Sets the value of the port property.
      Parameters:
      value - allowed object is Integer
    • getId

      public Object getId()
      Gets the value of the id property.
      Returns:
      possible object is Object
    • setId

      public void setId(Object value)
      Sets the value of the id property.
      Parameters:
      value - allowed object is Object