Package org.audiveris.proxymusic
Class Notehead
java.lang.Object
org.audiveris.proxymusic.Notehead
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 Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected YesNoprotected Stringprotected Stringprotected FontStyleprotected FontWeightprotected YesNoprotected Stringprotected NoteheadValue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColor()Gets the value of the color property.Gets the value of the filled 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.getSmufl()Gets the value of the smufl property.getValue()The notehead-value type indicates shapes other than the open and closed ovals associated with note durations.voidSets the value of the color property.voidSets the value of the filled 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.voidSets the value of the smufl property.voidsetValue(NoteheadValue value) Sets the value of the value property.
-
Field Details
-
value
-
filled
-
parentheses
-
smufl
-
color
-
fontFamily
-
fontStyle
-
fontSize
-
fontWeight
-
-
Constructor Details
-
Notehead
public Notehead()
-
-
Method Details
-
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
Sets the value of the value property.- Parameters:
value- allowed object isNoteheadValue
-
getFilled
Gets the value of the filled property.- Returns:
- possible object is
YesNo
-
setFilled
Sets the value of the filled property.- Parameters:
value- allowed object isYesNo
-
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
-
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
-
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
-