Package org.audiveris.proxymusic
Class ScoreInstrument
java.lang.Object
org.audiveris.proxymusic.ScoreInstrument
The score-instrument type represents a single instrument within a score-part. As with the score-part type, each score-instrument has a required ID attribute, a name, and an optional abbreviation.
A score-instrument type is also required if the score specifies MIDI 1.0 channels, banks, or programs. An initial midi-instrument assignment can also be made here. MusicXML software should be able to automatically assign reasonable channels and instruments without these elements in simple cases, such as where part names match General MIDI instrument names.
The score-instrument element can also distinguish multiple instruments of the same type that are on the same part, such as Clarinet 1 and Clarinet 2 instruments within a Clarinets 1 and 2 part.
Java class for score-instrument complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="score-instrument">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="instrument-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="instrument-abbreviation" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<group ref="{}virtual-instrument-data"/>
</sequence>
<attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" />
</restriction>
</complexContent>
</complexType>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the ensemble property.getId()Gets the value of the id property.Gets the value of the instrumentAbbreviation property.Gets the value of the instrumentName property.Gets the value of the instrumentSound property.getSolo()Gets the value of the solo property.Gets the value of the virtualInstrument property.voidsetEnsemble(String value) Sets the value of the ensemble property.voidSets the value of the id property.voidsetInstrumentAbbreviation(String value) Sets the value of the instrumentAbbreviation property.voidsetInstrumentName(String value) Sets the value of the instrumentName property.voidsetInstrumentSound(String value) Sets the value of the instrumentSound property.voidSets the value of the solo property.voidSets the value of the virtualInstrument property.
-
Field Details
-
instrumentName
-
instrumentAbbreviation
-
instrumentSound
-
solo
-
ensemble
-
virtualInstrument
-
id
-
-
Constructor Details
-
ScoreInstrument
public ScoreInstrument()
-
-
Method Details
-
getInstrumentName
Gets the value of the instrumentName property.- Returns:
- possible object is
String
-
setInstrumentName
Sets the value of the instrumentName property.- Parameters:
value- allowed object isString
-
getInstrumentAbbreviation
Gets the value of the instrumentAbbreviation property.- Returns:
- possible object is
String
-
setInstrumentAbbreviation
Sets the value of the instrumentAbbreviation property.- Parameters:
value- allowed object isString
-
getInstrumentSound
Gets the value of the instrumentSound property.- Returns:
- possible object is
String
-
setInstrumentSound
Sets the value of the instrumentSound property.- Parameters:
value- allowed object isString
-
getSolo
Gets the value of the solo property.- Returns:
- possible object is
Empty
-
setSolo
Sets the value of the solo property.- Parameters:
value- allowed object isEmpty
-
getEnsemble
Gets the value of the ensemble property.- Returns:
- possible object is
String
-
setEnsemble
Sets the value of the ensemble property.- Parameters:
value- allowed object isString
-
getVirtualInstrument
Gets the value of the virtualInstrument property.- Returns:
- possible object is
VirtualInstrument
-
setVirtualInstrument
Sets the value of the virtualInstrument property.- Parameters:
value- allowed object isVirtualInstrument
-
getId
Gets the value of the id property.- Returns:
- possible object is
String
-
setId
Sets the value of the id property.- Parameters:
value- allowed object isString
-