Class Tuplet

java.lang.Object
org.audiveris.proxymusic.Tuplet

public class Tuplet extends Object
A tuplet element is present when a tuplet is to be displayed graphically, in addition to the sound data provided by the time-modification elements. The number attribute is used to distinguish nested tuplets. The bracket attribute is used to indicate the presence of a bracket. If unspecified, the results are implementation-dependent. The line-shape attribute is used to specify whether the bracket is straight or in the older curved or slurred style. It is straight by default. Whereas a time-modification element shows how the cumulative, sounding effect of tuplets and double-note tremolos compare to the written note type, the tuplet element describes how this is displayed. The tuplet element also provides more detailed representation information than the time-modification element, and is needed to represent nested tuplets and other complex tuplets accurately. The show-number attribute is used to display either the number of actual notes, the number of both actual and normal notes, or neither. It is actual by default. The show-type attribute is used to display either the actual type, both the actual and normal types, or neither. It is none by default.

Java class for tuplet complex type.

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

 <complexType name="tuplet">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="tuplet-actual" type="{}tuplet-portion" minOccurs="0"/>
         <element name="tuplet-normal" type="{}tuplet-portion" minOccurs="0"/>
       </sequence>
       <attGroup ref="{}line-shape"/>
       <attGroup ref="{}placement"/>
       <attGroup ref="{}optional-unique-id"/>
       <attGroup ref="{}position"/>
       <attribute name="type" use="required" type="{}start-stop" />
       <attribute name="number" type="{}number-level" />
       <attribute name="bracket" type="{}yes-no" />
       <attribute name="show-number" type="{}show-tuplet" />
       <attribute name="show-type" type="{}show-tuplet" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Tuplet

      public Tuplet()
  • Method Details

    • getTupletActual

      public TupletPortion getTupletActual()
      Gets the value of the tupletActual property.
      Returns:
      possible object is TupletPortion
    • setTupletActual

      public void setTupletActual(TupletPortion value)
      Sets the value of the tupletActual property.
      Parameters:
      value - allowed object is TupletPortion
    • getTupletNormal

      public TupletPortion getTupletNormal()
      Gets the value of the tupletNormal property.
      Returns:
      possible object is TupletPortion
    • setTupletNormal

      public void setTupletNormal(TupletPortion value)
      Sets the value of the tupletNormal property.
      Parameters:
      value - allowed object is TupletPortion
    • getType

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

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

      public Integer getNumber()
      Gets the value of the number property.
      Returns:
      possible object is Integer
    • setNumber

      public void setNumber(Integer value)
      Sets the value of the number property.
      Parameters:
      value - allowed object is Integer
    • getBracket

      public YesNo getBracket()
      Gets the value of the bracket property.
      Returns:
      possible object is YesNo
    • setBracket

      public void setBracket(YesNo value)
      Sets the value of the bracket property.
      Parameters:
      value - allowed object is YesNo
    • getShowNumber

      public ShowTuplet getShowNumber()
      Gets the value of the showNumber property.
      Returns:
      possible object is ShowTuplet
    • setShowNumber

      public void setShowNumber(ShowTuplet value)
      Sets the value of the showNumber property.
      Parameters:
      value - allowed object is ShowTuplet
    • getShowType

      public ShowTuplet getShowType()
      Gets the value of the showType property.
      Returns:
      possible object is ShowTuplet
    • setShowType

      public void setShowType(ShowTuplet value)
      Sets the value of the showType property.
      Parameters:
      value - allowed object is ShowTuplet
    • getLineShape

      public LineShape getLineShape()
      Gets the value of the lineShape property.
      Returns:
      possible object is LineShape
    • setLineShape

      public void setLineShape(LineShape value)
      Sets the value of the lineShape property.
      Parameters:
      value - allowed object is LineShape
    • 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
    • getId

      public String getId()
      Gets the value of the id property.
      Returns:
      possible object is String
    • setId

      public void setId(String value)
      Sets the value of the id property.
      Parameters:
      value - allowed object is String
    • 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