Class Glyph

java.lang.Object
org.audiveris.proxymusic.Glyph

public class Glyph extends Object
The glyph element represents what SMuFL glyph should be used for different variations of symbols that are semantically identical. The type attribute specifies what type of glyph is being defined. The element value specifies what SMuFL glyph to use, including recommended stylistic alternates. The SMuFL glyph name should match the type. For instance, a type of quarter-rest would use values restQuarter, restQuarterOld, or restQuarterZ. A type of g-clef-ottava-bassa would use values gClef8vb, gClef8vbOld, or gClef8vbCClef. A type of octave-shift-up-8 would use values ottava, ottavaBassa, ottavaBassaBa, ottavaBassaVb, or octaveBassa.

Java class for glyph complex type.

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

 <complexType name="glyph">
   <simpleContent>
     <extension base="<>smufl-glyph-name">
       <attribute name="type" use="required" type="{}glyph-type" />
     </extension>
   </simpleContent>
 </complexType>
 
  • Field Details

    • value

      protected String value
    • type

      protected String type
  • Constructor Details

    • Glyph

      public Glyph()
  • Method Details

    • getValue

      public String getValue()
      The smufl-glyph-name type is used for attributes that reference a specific Standard Music Font Layout (SMuFL) character. The value is a SMuFL canonical glyph name, not a code point. For instance, the value for a standard piano pedal mark would be keyboardPedalPed, not U+E650.
      Returns:
      possible object is String
    • setValue

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

      public String getType()
      Gets the value of the type property.
      Returns:
      possible object is String
    • setType

      public void setType(String value)
      Sets the value of the type property.
      Parameters:
      value - allowed object is String