Package org.audiveris.proxymusic
Class MidiInstrument
java.lang.Object
org.audiveris.proxymusic.MidiInstrument
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 Summary
FieldsModifier and TypeFieldDescriptionprotected BigDecimalprotected Objectprotected Integerprotected Integerprotected Stringprotected Integerprotected Integerprotected BigDecimalprotected BigDecimal -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the elevation property.getId()Gets the value of the id property.Gets the value of the midiBank property.Gets the value of the midiChannel property.Gets the value of the midiName property.Gets the value of the midiProgram property.Gets the value of the midiUnpitched property.getPan()Gets the value of the pan property.Gets the value of the volume property.voidsetElevation(BigDecimal value) Sets the value of the elevation property.voidSets the value of the id property.voidsetMidiBank(Integer value) Sets the value of the midiBank property.voidsetMidiChannel(Integer value) Sets the value of the midiChannel property.voidsetMidiName(String value) Sets the value of the midiName property.voidsetMidiProgram(Integer value) Sets the value of the midiProgram property.voidsetMidiUnpitched(Integer value) Sets the value of the midiUnpitched property.voidsetPan(BigDecimal value) Sets the value of the pan property.voidsetVolume(BigDecimal value) Sets the value of the volume property.
-
Field Details
-
midiChannel
-
midiName
-
midiBank
-
midiProgram
-
midiUnpitched
-
volume
-
pan
-
elevation
-
id
-
-
Constructor Details
-
MidiInstrument
public MidiInstrument()
-
-
Method Details
-
getMidiChannel
Gets the value of the midiChannel property.- Returns:
- possible object is
Integer
-
setMidiChannel
Sets the value of the midiChannel property.- Parameters:
value- allowed object isInteger
-
getMidiName
Gets the value of the midiName property.- Returns:
- possible object is
String
-
setMidiName
Sets the value of the midiName property.- Parameters:
value- allowed object isString
-
getMidiBank
Gets the value of the midiBank property.- Returns:
- possible object is
Integer
-
setMidiBank
Sets the value of the midiBank property.- Parameters:
value- allowed object isInteger
-
getMidiProgram
Gets the value of the midiProgram property.- Returns:
- possible object is
Integer
-
setMidiProgram
Sets the value of the midiProgram property.- Parameters:
value- allowed object isInteger
-
getMidiUnpitched
Gets the value of the midiUnpitched property.- Returns:
- possible object is
Integer
-
setMidiUnpitched
Sets the value of the midiUnpitched property.- Parameters:
value- allowed object isInteger
-
getVolume
Gets the value of the volume property.- Returns:
- possible object is
BigDecimal
-
setVolume
Sets the value of the volume property.- Parameters:
value- allowed object isBigDecimal
-
getPan
Gets the value of the pan property.- Returns:
- possible object is
BigDecimal
-
setPan
Sets the value of the pan property.- Parameters:
value- allowed object isBigDecimal
-
getElevation
Gets the value of the elevation property.- Returns:
- possible object is
BigDecimal
-
setElevation
Sets the value of the elevation property.- Parameters:
value- allowed object isBigDecimal
-
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
-