Class Scaling

java.lang.Object
org.audiveris.proxymusic.Scaling

public class Scaling extends Object
Margins, page sizes, and distances are all measured in tenths to keep MusicXML data in a consistent coordinate system as much as possible. The translation to absolute units is done with the scaling type, which specifies how many millimeters are equal to how many tenths. For a staff height of 7 mm, millimeters would be set to 7 while tenths is set to 40. The ability to set a formula rather than a single scaling factor helps avoid roundoff errors.

Java class for scaling complex type.

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

 <complexType name="scaling">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="millimeters" type="{}millimeters"/>
         <element name="tenths" type="{}tenths"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Scaling

      public Scaling()
  • Method Details

    • getMillimeters

      public BigDecimal getMillimeters()
      Gets the value of the millimeters property.
      Returns:
      possible object is BigDecimal
    • setMillimeters

      public void setMillimeters(BigDecimal value)
      Sets the value of the millimeters property.
      Parameters:
      value - allowed object is BigDecimal
    • getTenths

      public BigDecimal getTenths()
      Gets the value of the tenths property.
      Returns:
      possible object is BigDecimal
    • setTenths

      public void setTenths(BigDecimal value)
      Sets the value of the tenths property.
      Parameters:
      value - allowed object is BigDecimal