Class Distance

java.lang.Object
org.audiveris.proxymusic.Distance

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

  • Constructor Details

    • Distance

      public Distance()
  • Method Details

    • getValue

      public BigDecimal 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

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

      public String getType()
      Gets the value of the type property.
      Returns:
      possible object is String
    • setType

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