Package org.audiveris.proxymusic
Class Distance
java.lang.Object
org.audiveris.proxymusic.Distance
The distance element represents standard distances between notation elements in tenths. The type attribute defines what type of distance is being defined. Valid values include hyphen (for hyphens in lyrics) and beam.
Java class for distance complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="distance">
<simpleContent>
<extension base="<>tenths">
<attribute name="type" use="required" type="{}distance-type" />
</extension>
</simpleContent>
</complexType>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetType()Gets the value of the type property.getValue()The tenths type is a number representing tenths of interline staff space (positive or negative).voidSets the value of the type property.voidsetValue(BigDecimal value) Sets the value of the value property.
-
Field Details
-
value
-
type
-
-
Constructor Details
-
Distance
public Distance()
-
-
Method Details
-
getValue
The tenths type is a number representing tenths of interline staff space (positive or negative). Both integer and decimal values are allowed, such as 5 for a half space and 2.5 for a quarter space. Interline space is measured from the middle of a staff line. Distances in a MusicXML file are measured in tenths of staff space. Tenths are then scaled to millimeters within the scaling element, used in the defaults element at the start of a score. Individual staves can apply a scaling factor to adjust staff size. When a MusicXML element or attribute refers to tenths, it means the global tenths defined by the scaling element, not the local tenths as adjusted by the staff-size element.- Returns:
- possible object is
BigDecimal
-
setValue
Sets the value of the value property.- Parameters:
value- allowed object isBigDecimal
-
getType
Gets the value of the type property.- Returns:
- possible object is
String
-
setType
Sets the value of the type property.- Parameters:
value- allowed object isString
-