Class Offset

java.lang.Object
org.audiveris.proxymusic.Offset

public class Offset extends Object
An offset is represented in terms of divisions, and indicates where the direction will appear relative to the current musical location. The current musical location is always within the current measure, even at the end of a measure. The offset affects the visual appearance of the direction. If the sound attribute is "yes", then the offset affects playback and listening too. If the sound attribute is "no", then any sound or listening associated with the direction takes effect at the current location. The sound attribute is "no" by default for compatibility with earlier versions of the MusicXML format. If an element within a direction includes a default-x attribute, the offset value will be ignored when determining the appearance of that element.

Java class for offset complex type.

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

 <complexType name="offset">
   <simpleContent>
     <extension base="<>divisions">
       <attribute name="sound" type="{}yes-no" />
     </extension>
   </simpleContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Offset

      public Offset()
  • Method Details

    • getValue

      public BigDecimal getValue()
      The divisions type is used to express values in terms of the musical divisions defined by the divisions element. It is preferred that these be integer values both for MIDI interoperability and to avoid roundoff errors.
      Returns:
      possible object is BigDecimal
    • setValue

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

      public YesNo getSound()
      Gets the value of the sound property.
      Returns:
      possible object is YesNo
    • setSound

      public void setSound(YesNo value)
      Sets the value of the sound property.
      Parameters:
      value - allowed object is YesNo