Package org.audiveris.proxymusic
Class Offset
java.lang.Object
org.audiveris.proxymusic.Offset
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSound()Gets the value of the sound property.getValue()The divisions type is used to express values in terms of the musical divisions defined by the divisions element.voidSets the value of the sound property.voidsetValue(BigDecimal value) Sets the value of the value property.
-
Field Details
-
value
-
sound
-
-
Constructor Details
-
Offset
public Offset()
-
-
Method Details
-
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
Sets the value of the value property.- Parameters:
value- allowed object isBigDecimal
-
getSound
Gets the value of the sound property.- Returns:
- possible object is
YesNo
-
setSound
Sets the value of the sound property.- Parameters:
value- allowed object isYesNo
-