Package org.audiveris.proxymusic
Class Tuplet
java.lang.Object
org.audiveris.proxymusic.Tuplet
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 Summary
FieldsModifier and TypeFieldDescriptionprotected YesNoprotected BigDecimalprotected BigDecimalprotected Stringprotected LineShapeprotected Integerprotected AboveBelowprotected BigDecimalprotected BigDecimalprotected ShowTupletprotected ShowTupletprotected TupletPortionprotected TupletPortionprotected StartStop -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the bracket property.Gets the value of the defaultX property.Gets the value of the defaultY property.getId()Gets the value of the id property.Gets the value of the lineShape property.Gets the value of the number property.Gets the value of the placement property.Gets the value of the relativeX property.Gets the value of the relativeY property.Gets the value of the showNumber property.Gets the value of the showType property.Gets the value of the tupletActual property.Gets the value of the tupletNormal property.getType()Gets the value of the type property.voidsetBracket(YesNo value) Sets the value of the bracket property.voidsetDefaultX(BigDecimal value) Sets the value of the defaultX property.voidsetDefaultY(BigDecimal value) Sets the value of the defaultY property.voidSets the value of the id property.voidsetLineShape(LineShape value) Sets the value of the lineShape property.voidSets the value of the number property.voidsetPlacement(AboveBelow value) Sets the value of the placement property.voidsetRelativeX(BigDecimal value) Sets the value of the relativeX property.voidsetRelativeY(BigDecimal value) Sets the value of the relativeY property.voidsetShowNumber(ShowTuplet value) Sets the value of the showNumber property.voidsetShowType(ShowTuplet value) Sets the value of the showType property.voidsetTupletActual(TupletPortion value) Sets the value of the tupletActual property.voidsetTupletNormal(TupletPortion value) Sets the value of the tupletNormal property.voidSets the value of the type property.
-
Field Details
-
tupletActual
-
tupletNormal
-
type
-
number
-
bracket
-
showNumber
-
showType
-
lineShape
-
placement
-
id
-
defaultX
-
defaultY
-
relativeX
-
relativeY
-
-
Constructor Details
-
Tuplet
public Tuplet()
-
-
Method Details
-
getTupletActual
Gets the value of the tupletActual property.- Returns:
- possible object is
TupletPortion
-
setTupletActual
Sets the value of the tupletActual property.- Parameters:
value- allowed object isTupletPortion
-
getTupletNormal
Gets the value of the tupletNormal property.- Returns:
- possible object is
TupletPortion
-
setTupletNormal
Sets the value of the tupletNormal property.- Parameters:
value- allowed object isTupletPortion
-
getType
Gets the value of the type property.- Returns:
- possible object is
StartStop
-
setType
Sets the value of the type property.- Parameters:
value- allowed object isStartStop
-
getNumber
Gets the value of the number property.- Returns:
- possible object is
Integer
-
setNumber
Sets the value of the number property.- Parameters:
value- allowed object isInteger
-
getBracket
Gets the value of the bracket property.- Returns:
- possible object is
YesNo
-
setBracket
Sets the value of the bracket property.- Parameters:
value- allowed object isYesNo
-
getShowNumber
Gets the value of the showNumber property.- Returns:
- possible object is
ShowTuplet
-
setShowNumber
Sets the value of the showNumber property.- Parameters:
value- allowed object isShowTuplet
-
getShowType
Gets the value of the showType property.- Returns:
- possible object is
ShowTuplet
-
setShowType
Sets the value of the showType property.- Parameters:
value- allowed object isShowTuplet
-
getLineShape
Gets the value of the lineShape property.- Returns:
- possible object is
LineShape
-
setLineShape
Sets the value of the lineShape property.- Parameters:
value- allowed object isLineShape
-
getPlacement
Gets the value of the placement property.- Returns:
- possible object is
AboveBelow
-
setPlacement
Sets the value of the placement property.- Parameters:
value- allowed object isAboveBelow
-
getId
Gets the value of the id property.- Returns:
- possible object is
String
-
setId
Sets the value of the id property.- Parameters:
value- allowed object isString
-
getDefaultX
Gets the value of the defaultX property.- Returns:
- possible object is
BigDecimal
-
setDefaultX
Sets the value of the defaultX property.- Parameters:
value- allowed object isBigDecimal
-
getDefaultY
Gets the value of the defaultY property.- Returns:
- possible object is
BigDecimal
-
setDefaultY
Sets the value of the defaultY property.- Parameters:
value- allowed object isBigDecimal
-
getRelativeX
Gets the value of the relativeX property.- Returns:
- possible object is
BigDecimal
-
setRelativeX
Sets the value of the relativeX property.- Parameters:
value- allowed object isBigDecimal
-
getRelativeY
Gets the value of the relativeY property.- Returns:
- possible object is
BigDecimal
-
setRelativeY
Sets the value of the relativeY property.- Parameters:
value- allowed object isBigDecimal
-