Package org.audiveris.proxymusic
Class Accidental
java.lang.Object
org.audiveris.proxymusic.Accidental
The accidental type represents actual notated accidentals. Editorial and cautionary indications are indicated by attributes. Values for these attributes are "no" if not present. Specific graphic display such as parentheses, brackets, and size are controlled by the level-display attribute group.
Java class for accidental complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="accidental">
<simpleContent>
<extension base="<>accidental-value">
<attGroup ref="{}level-display"/>
<attGroup ref="{}print-style"/>
<attribute name="cautionary" type="{}yes-no" />
<attribute name="editorial" type="{}yes-no" />
<attribute name="smufl" type="{}smufl-accidental-glyph-name" />
</extension>
</simpleContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected YesNoprotected YesNoprotected Stringprotected BigDecimalprotected BigDecimalprotected YesNoprotected Stringprotected Stringprotected FontStyleprotected FontWeightprotected YesNoprotected BigDecimalprotected BigDecimalprotected SymbolSizeprotected Stringprotected AccidentalValue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the bracket property.Gets the value of the cautionary property.getColor()Gets the value of the color property.Gets the value of the defaultX property.Gets the value of the defaultY property.Gets the value of the editorial property.Gets the value of the fontFamily property.Gets the value of the fontSize property.Gets the value of the fontStyle property.Gets the value of the fontWeight property.Gets the value of the parentheses property.Gets the value of the relativeX property.Gets the value of the relativeY property.getSize()Gets the value of the size property.getSmufl()Gets the value of the smufl property.getValue()The accidental-value type represents notated accidentals supported by MusicXML.voidsetBracket(YesNo value) Sets the value of the bracket property.voidsetCautionary(YesNo value) Sets the value of the cautionary property.voidSets the value of the color property.voidsetDefaultX(BigDecimal value) Sets the value of the defaultX property.voidsetDefaultY(BigDecimal value) Sets the value of the defaultY property.voidsetEditorial(YesNo value) Sets the value of the editorial property.voidsetFontFamily(String value) Sets the value of the fontFamily property.voidsetFontSize(String value) Sets the value of the fontSize property.voidsetFontStyle(FontStyle value) Sets the value of the fontStyle property.voidsetFontWeight(FontWeight value) Sets the value of the fontWeight property.voidsetParentheses(YesNo value) Sets the value of the parentheses property.voidsetRelativeX(BigDecimal value) Sets the value of the relativeX property.voidsetRelativeY(BigDecimal value) Sets the value of the relativeY property.voidsetSize(SymbolSize value) Sets the value of the size property.voidSets the value of the smufl property.voidsetValue(AccidentalValue value) Sets the value of the value property.
-
Field Details
-
value
-
cautionary
-
editorial
-
smufl
-
parentheses
-
bracket
-
size
-
color
-
fontFamily
-
fontStyle
-
fontSize
-
fontWeight
-
defaultX
-
defaultY
-
relativeX
-
relativeY
-
-
Constructor Details
-
Accidental
public Accidental()
-
-
Method Details
-
getValue
The accidental-value type represents notated accidentals supported by MusicXML. In the MusicXML 2.0 DTD this was a string with values that could be included. The XSD strengthens the data typing to an enumerated list. The quarter- and three-quarters- accidentals are Tartini-style quarter-tone accidentals. The -down and -up accidentals are quarter-tone accidentals that include arrows pointing down or up. The slash- accidentals are used in Turkish classical music. The numbered sharp and flat accidentals are superscripted versions of the accidental signs, used in Turkish folk music. The sori and koron accidentals are microtonal sharp and flat accidentals used in Iranian and Persian music. The other accidental covers accidentals other than those listed here. It is usually used in combination with the smufl attribute to specify a particular SMuFL accidental. The smufl attribute may be used with any accidental value to help specify the appearance of symbols that share the same MusicXML semantics.- Returns:
- possible object is
AccidentalValue
-
setValue
Sets the value of the value property.- Parameters:
value- allowed object isAccidentalValue
-
getCautionary
Gets the value of the cautionary property.- Returns:
- possible object is
YesNo
-
setCautionary
Sets the value of the cautionary property.- Parameters:
value- allowed object isYesNo
-
getEditorial
Gets the value of the editorial property.- Returns:
- possible object is
YesNo
-
setEditorial
Sets the value of the editorial property.- Parameters:
value- allowed object isYesNo
-
getSmufl
Gets the value of the smufl property.- Returns:
- possible object is
String
-
setSmufl
Sets the value of the smufl property.- Parameters:
value- allowed object isString
-
getParentheses
Gets the value of the parentheses property.- Returns:
- possible object is
YesNo
-
setParentheses
Sets the value of the parentheses property.- Parameters:
value- allowed object isYesNo
-
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
-
getSize
Gets the value of the size property.- Returns:
- possible object is
SymbolSize
-
setSize
Sets the value of the size property.- Parameters:
value- allowed object isSymbolSize
-
getColor
Gets the value of the color property.- Returns:
- possible object is
String
-
setColor
Sets the value of the color property.- Parameters:
value- allowed object isString
-
getFontFamily
Gets the value of the fontFamily property.- Returns:
- possible object is
String
-
setFontFamily
Sets the value of the fontFamily property.- Parameters:
value- allowed object isString
-
getFontStyle
Gets the value of the fontStyle property.- Returns:
- possible object is
FontStyle
-
setFontStyle
Sets the value of the fontStyle property.- Parameters:
value- allowed object isFontStyle
-
getFontSize
Gets the value of the fontSize property.- Returns:
- possible object is
String
-
setFontSize
Sets the value of the fontSize property.- Parameters:
value- allowed object isString
-
getFontWeight
Gets the value of the fontWeight property.- Returns:
- possible object is
FontWeight
-
setFontWeight
Sets the value of the fontWeight property.- Parameters:
value- allowed object isFontWeight
-
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
-