Class ScoreInstrument

java.lang.Object
org.audiveris.proxymusic.ScoreInstrument

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

    • instrumentName

      protected String instrumentName
    • instrumentAbbreviation

      protected String instrumentAbbreviation
    • instrumentSound

      protected String instrumentSound
    • solo

      protected Empty solo
    • ensemble

      protected String ensemble
    • virtualInstrument

      protected VirtualInstrument virtualInstrument
    • id

      protected String id
  • Constructor Details

    • ScoreInstrument

      public ScoreInstrument()
  • Method Details

    • getInstrumentName

      public String getInstrumentName()
      Gets the value of the instrumentName property.
      Returns:
      possible object is String
    • setInstrumentName

      public void setInstrumentName(String value)
      Sets the value of the instrumentName property.
      Parameters:
      value - allowed object is String
    • getInstrumentAbbreviation

      public String getInstrumentAbbreviation()
      Gets the value of the instrumentAbbreviation property.
      Returns:
      possible object is String
    • setInstrumentAbbreviation

      public void setInstrumentAbbreviation(String value)
      Sets the value of the instrumentAbbreviation property.
      Parameters:
      value - allowed object is String
    • getInstrumentSound

      public String getInstrumentSound()
      Gets the value of the instrumentSound property.
      Returns:
      possible object is String
    • setInstrumentSound

      public void setInstrumentSound(String value)
      Sets the value of the instrumentSound property.
      Parameters:
      value - allowed object is String
    • getSolo

      public Empty getSolo()
      Gets the value of the solo property.
      Returns:
      possible object is Empty
    • setSolo

      public void setSolo(Empty value)
      Sets the value of the solo property.
      Parameters:
      value - allowed object is Empty
    • getEnsemble

      public String getEnsemble()
      Gets the value of the ensemble property.
      Returns:
      possible object is String
    • setEnsemble

      public void setEnsemble(String value)
      Sets the value of the ensemble property.
      Parameters:
      value - allowed object is String
    • getVirtualInstrument

      public VirtualInstrument getVirtualInstrument()
      Gets the value of the virtualInstrument property.
      Returns:
      possible object is VirtualInstrument
    • setVirtualInstrument

      public void setVirtualInstrument(VirtualInstrument value)
      Sets the value of the virtualInstrument property.
      Parameters:
      value - allowed object is VirtualInstrument
    • getId

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

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