Class MidiInstrument

java.lang.Object
org.audiveris.proxymusic.MidiInstrument

public class MidiInstrument extends Object
The midi-instrument type defines MIDI 1.0 instrument playback. The midi-instrument element can be a part of either the score-instrument element at the start of a part, or the sound element within a part. The id attribute refers to the score-instrument affected by the change.

Java class for midi-instrument complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="midi-instrument">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="midi-channel" type="{}midi-16" minOccurs="0"/>
         <element name="midi-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="midi-bank" type="{}midi-16384" minOccurs="0"/>
         <element name="midi-program" type="{}midi-128" minOccurs="0"/>
         <element name="midi-unpitched" type="{}midi-128" minOccurs="0"/>
         <element name="volume" type="{}percent" minOccurs="0"/>
         <element name="pan" type="{}rotation-degrees" minOccurs="0"/>
         <element name="elevation" type="{}rotation-degrees" minOccurs="0"/>
       </sequence>
       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}IDREF" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • MidiInstrument

      public MidiInstrument()
  • Method Details

    • getMidiChannel

      public Integer getMidiChannel()
      Gets the value of the midiChannel property.
      Returns:
      possible object is Integer
    • setMidiChannel

      public void setMidiChannel(Integer value)
      Sets the value of the midiChannel property.
      Parameters:
      value - allowed object is Integer
    • getMidiName

      public String getMidiName()
      Gets the value of the midiName property.
      Returns:
      possible object is String
    • setMidiName

      public void setMidiName(String value)
      Sets the value of the midiName property.
      Parameters:
      value - allowed object is String
    • getMidiBank

      public Integer getMidiBank()
      Gets the value of the midiBank property.
      Returns:
      possible object is Integer
    • setMidiBank

      public void setMidiBank(Integer value)
      Sets the value of the midiBank property.
      Parameters:
      value - allowed object is Integer
    • getMidiProgram

      public Integer getMidiProgram()
      Gets the value of the midiProgram property.
      Returns:
      possible object is Integer
    • setMidiProgram

      public void setMidiProgram(Integer value)
      Sets the value of the midiProgram property.
      Parameters:
      value - allowed object is Integer
    • getMidiUnpitched

      public Integer getMidiUnpitched()
      Gets the value of the midiUnpitched property.
      Returns:
      possible object is Integer
    • setMidiUnpitched

      public void setMidiUnpitched(Integer value)
      Sets the value of the midiUnpitched property.
      Parameters:
      value - allowed object is Integer
    • getVolume

      public BigDecimal getVolume()
      Gets the value of the volume property.
      Returns:
      possible object is BigDecimal
    • setVolume

      public void setVolume(BigDecimal value)
      Sets the value of the volume property.
      Parameters:
      value - allowed object is BigDecimal
    • getPan

      public BigDecimal getPan()
      Gets the value of the pan property.
      Returns:
      possible object is BigDecimal
    • setPan

      public void setPan(BigDecimal value)
      Sets the value of the pan property.
      Parameters:
      value - allowed object is BigDecimal
    • getElevation

      public BigDecimal getElevation()
      Gets the value of the elevation property.
      Returns:
      possible object is BigDecimal
    • setElevation

      public void setElevation(BigDecimal value)
      Sets the value of the elevation property.
      Parameters:
      value - allowed object is BigDecimal
    • 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