Class Tremolo

java.lang.Object
org.audiveris.proxymusic.Tremolo

public class Tremolo extends Object
The tremolo ornament can be used to indicate single-note, double-note, or unmeasured tremolos. Single-note tremolos use the single type, double-note tremolos use the start and stop types, and unmeasured tremolos use the unmeasured type. The default is "single" for compatibility with Version 1.1. The text of the element indicates the number of tremolo marks and is an integer from 0 to 8. Note that the number of attached beams is not included in this value, but is represented separately using the beam element. The value should be 0 for unmeasured tremolos. When using double-note tremolos, the duration of each note in the tremolo should correspond to half of the notated type value. A time-modification element should also be added with an actual-notes value of 2 and a normal-notes value of 1. If used within a tuplet, this 2/1 ratio should be multiplied by the existing tuplet ratio. The smufl attribute specifies the glyph to use from the SMuFL Tremolos range for an unmeasured tremolo. It is ignored for other tremolo types. The SMuFL buzzRoll glyph is used by default if the attribute is missing. Using repeater beams for indicating tremolos is deprecated as of MusicXML 3.0.

Java class for tremolo complex type.

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

 <complexType name="tremolo">
   <simpleContent>
     <extension base="<>tremolo-marks">
       <attGroup ref="{}placement"/>
       <attGroup ref="{}print-style"/>
       <attGroup ref="{}smufl"/>
       <attribute name="type" type="{}tremolo-type" default="single" />
     </extension>
   </simpleContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Tremolo

      public Tremolo()
  • Method Details

    • getValue

      public int getValue()
      The number of tremolo marks is represented by a number from 0 to 8: the same as beam-level with 0 added.
    • setValue

      public void setValue(int value)
      Sets the value of the value property.
    • getType

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

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

      public AboveBelow getPlacement()
      Gets the value of the placement property.
      Returns:
      possible object is AboveBelow
    • setPlacement

      public void setPlacement(AboveBelow value)
      Sets the value of the placement property.
      Parameters:
      value - allowed object is AboveBelow
    • getColor

      public String getColor()
      Gets the value of the color property.
      Returns:
      possible object is String
    • setColor

      public void setColor(String value)
      Sets the value of the color property.
      Parameters:
      value - allowed object is String
    • getFontFamily

      public String getFontFamily()
      Gets the value of the fontFamily property.
      Returns:
      possible object is String
    • setFontFamily

      public void setFontFamily(String value)
      Sets the value of the fontFamily property.
      Parameters:
      value - allowed object is String
    • getFontStyle

      public FontStyle getFontStyle()
      Gets the value of the fontStyle property.
      Returns:
      possible object is FontStyle
    • setFontStyle

      public void setFontStyle(FontStyle value)
      Sets the value of the fontStyle property.
      Parameters:
      value - allowed object is FontStyle
    • getFontSize

      public String getFontSize()
      Gets the value of the fontSize property.
      Returns:
      possible object is String
    • setFontSize

      public void setFontSize(String value)
      Sets the value of the fontSize property.
      Parameters:
      value - allowed object is String
    • getFontWeight

      public FontWeight getFontWeight()
      Gets the value of the fontWeight property.
      Returns:
      possible object is FontWeight
    • setFontWeight

      public void setFontWeight(FontWeight value)
      Sets the value of the fontWeight property.
      Parameters:
      value - allowed object is FontWeight
    • getDefaultX

      public BigDecimal getDefaultX()
      Gets the value of the defaultX property.
      Returns:
      possible object is BigDecimal
    • setDefaultX

      public void setDefaultX(BigDecimal value)
      Sets the value of the defaultX property.
      Parameters:
      value - allowed object is BigDecimal
    • getDefaultY

      public BigDecimal getDefaultY()
      Gets the value of the defaultY property.
      Returns:
      possible object is BigDecimal
    • setDefaultY

      public void setDefaultY(BigDecimal value)
      Sets the value of the defaultY property.
      Parameters:
      value - allowed object is BigDecimal
    • getRelativeX

      public BigDecimal getRelativeX()
      Gets the value of the relativeX property.
      Returns:
      possible object is BigDecimal
    • setRelativeX

      public void setRelativeX(BigDecimal value)
      Sets the value of the relativeX property.
      Parameters:
      value - allowed object is BigDecimal
    • getRelativeY

      public BigDecimal getRelativeY()
      Gets the value of the relativeY property.
      Returns:
      possible object is BigDecimal
    • setRelativeY

      public void setRelativeY(BigDecimal value)
      Sets the value of the relativeY property.
      Parameters:
      value - allowed object is BigDecimal
    • getSmufl

      public String getSmufl()
      Gets the value of the smufl property.
      Returns:
      possible object is String
    • setSmufl

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