Class Notehead

java.lang.Object
org.audiveris.proxymusic.Notehead

public class Notehead extends Object
The notehead type indicates shapes other than the open and closed ovals associated with note durations. The smufl attribute can be used to specify a particular notehead, allowing application interoperability without requiring every SMuFL glyph to have a MusicXML element equivalent. This attribute can be used either with the "other" value, or to refine a specific notehead value such as "cluster". Noteheads in the SMuFL Note name noteheads and Note name noteheads supplement ranges (U+E150–U+E1AF and U+EEE0–U+EEFF) should not use the smufl attribute or the "other" value, but instead use the notehead-text element. For the enclosed shapes, the default is to be hollow for half notes and longer, and filled otherwise. The filled attribute can be set to change this if needed. If the parentheses attribute is set to yes, the notehead is parenthesized. It is no by default.

Java class for notehead complex type.

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

 <complexType name="notehead">
   <simpleContent>
     <extension base="<>notehead-value">
       <attGroup ref="{}smufl"/>
       <attGroup ref="{}color"/>
       <attGroup ref="{}font"/>
       <attribute name="filled" type="{}yes-no" />
       <attribute name="parentheses" type="{}yes-no" />
     </extension>
   </simpleContent>
 </complexType>
 
  • Field Details

    • value

      protected NoteheadValue value
    • filled

      protected YesNo filled
    • parentheses

      protected YesNo parentheses
    • smufl

      protected String smufl
    • color

      protected String color
    • fontFamily

      protected String fontFamily
    • fontStyle

      protected FontStyle fontStyle
    • fontSize

      protected String fontSize
    • fontWeight

      protected FontWeight fontWeight
  • Constructor Details

    • Notehead

      public Notehead()
  • Method Details

    • getValue

      public NoteheadValue getValue()
      The notehead-value type indicates shapes other than the open and closed ovals associated with note durations. The values do, re, mi, fa, fa up, so, la, and ti correspond to Aikin's 7-shape system. The fa up shape is typically used with upstems; the fa shape is typically used with downstems or no stems. The arrow shapes differ from triangle and inverted triangle by being centered on the stem. Slashed and back slashed notes include both the normal notehead and a slash. The triangle shape has the tip of the triangle pointing up; the inverted triangle shape has the tip of the triangle pointing down. The left triangle shape is a right triangle with the hypotenuse facing up and to the left. The other notehead covers noteheads other than those listed here. It is usually used in combination with the smufl attribute to specify a particular SMuFL notehead. The smufl attribute may be used with any notehead value to help specify the appearance of symbols that share the same MusicXML semantics. Noteheads in the SMuFL Note name noteheads and Note name noteheads supplement ranges (U+E150–U+E1AF and U+EEE0–U+EEFF) should not use the smufl attribute or the "other" value, but instead use the notehead-text element.
      Returns:
      possible object is NoteheadValue
    • setValue

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

      public YesNo getFilled()
      Gets the value of the filled property.
      Returns:
      possible object is YesNo
    • setFilled

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