Class Accidental

java.lang.Object
org.audiveris.proxymusic.Accidental

public class Accidental extends Object
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 Details

  • Constructor Details

    • Accidental

      public Accidental()
  • Method Details

    • getValue

      public AccidentalValue 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

      public void setValue(AccidentalValue value)
      Sets the value of the value property.
      Parameters:
      value - allowed object is AccidentalValue
    • getCautionary

      public YesNo getCautionary()
      Gets the value of the cautionary property.
      Returns:
      possible object is YesNo
    • setCautionary

      public void setCautionary(YesNo value)
      Sets the value of the cautionary property.
      Parameters:
      value - allowed object is YesNo
    • getEditorial

      public YesNo getEditorial()
      Gets the value of the editorial property.
      Returns:
      possible object is YesNo
    • setEditorial

      public void setEditorial(YesNo value)
      Sets the value of the editorial property.
      Parameters:
      value - allowed object is YesNo
    • 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
    • getParentheses

      public YesNo getParentheses()
      Gets the value of the parentheses property.
      Returns:
      possible object is YesNo
    • setParentheses

      public void setParentheses(YesNo value)
      Sets the value of the parentheses property.
      Parameters:
      value - allowed object is YesNo
    • 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
    • getSize

      public SymbolSize getSize()
      Gets the value of the size property.
      Returns:
      possible object is SymbolSize
    • setSize

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