Class Harmony

java.lang.Object
org.audiveris.proxymusic.Harmony

public class Harmony extends Object
The harmony type represents harmony analysis, including chord symbols in popular music as well as functional harmony analysis in classical music. If there are alternate harmonies possible, this can be specified using multiple harmony elements differentiated by type. Explicit harmonies have all note present in the music; implied have some notes missing but implied; alternate represents alternate analyses. The print-object attribute controls whether or not anything is printed due to the harmony element. The print-frame attribute controls printing of a frame or fretboard diagram. The print-style attribute group sets the default for the harmony, but individual elements can override this with their own print-style values. The arrangement attribute specifies how multiple harmony-chord groups are arranged relative to each other. Harmony-chords with vertical arrangement are separated by horizontal lines. Harmony-chords with diagonal or horizontal arrangement are separated by diagonal lines or slashes.

Java class for harmony complex type.

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

 <complexType name="harmony">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <group ref="{}harmony-chord" maxOccurs="unbounded"/>
         <element name="frame" type="{}frame" minOccurs="0"/>
         <element name="offset" type="{}offset" minOccurs="0"/>
         <group ref="{}editorial"/>
         <group ref="{}staff" minOccurs="0"/>
       </sequence>
       <attGroup ref="{}print-object"/>
       <attGroup ref="{}placement"/>
       <attGroup ref="{}system-relation"/>
       <attGroup ref="{}print-style"/>
       <attGroup ref="{}optional-unique-id"/>
       <attribute name="type" type="{}harmony-type" />
       <attribute name="print-frame" type="{}yes-no" />
       <attribute name="arrangement" type="{}harmony-arrangement" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Harmony

      public Harmony()
  • Method Details

    • getHarmonyChord

      public List<Object> getHarmonyChord()
      Gets the value of the harmonyChord property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the harmonyChord property.

      For example, to add a new item, do as follows:

          getHarmonyChord().add(newItem);
       

      Objects of the following type(s) are allowed in the list Root Numeral StyleText Kind Inversion Bass Degree

    • getFrame

      public Frame getFrame()
      Gets the value of the frame property.
      Returns:
      possible object is Frame
    • setFrame

      public void setFrame(Frame value)
      Sets the value of the frame property.
      Parameters:
      value - allowed object is Frame
    • getOffset

      public Offset getOffset()
      Gets the value of the offset property.
      Returns:
      possible object is Offset
    • setOffset

      public void setOffset(Offset value)
      Sets the value of the offset property.
      Parameters:
      value - allowed object is Offset
    • getFootnote

      public FormattedText getFootnote()
      Gets the value of the footnote property.
      Returns:
      possible object is FormattedText
    • setFootnote

      public void setFootnote(FormattedText value)
      Sets the value of the footnote property.
      Parameters:
      value - allowed object is FormattedText
    • getLevel

      public Level getLevel()
      Gets the value of the level property.
      Returns:
      possible object is Level
    • setLevel

      public void setLevel(Level value)
      Sets the value of the level property.
      Parameters:
      value - allowed object is Level
    • getStaff

      public BigInteger getStaff()
      Gets the value of the staff property.
      Returns:
      possible object is BigInteger
    • setStaff

      public void setStaff(BigInteger value)
      Sets the value of the staff property.
      Parameters:
      value - allowed object is BigInteger
    • getType

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

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

      public YesNo getPrintFrame()
      Gets the value of the printFrame property.
      Returns:
      possible object is YesNo
    • setPrintFrame

      public void setPrintFrame(YesNo value)
      Sets the value of the printFrame property.
      Parameters:
      value - allowed object is YesNo
    • getArrangement

      public HarmonyArrangement getArrangement()
      Gets the value of the arrangement property.
      Returns:
      possible object is HarmonyArrangement
    • setArrangement

      public void setArrangement(HarmonyArrangement value)
      Sets the value of the arrangement property.
      Parameters:
      value - allowed object is HarmonyArrangement
    • getPrintObject

      public YesNo getPrintObject()
      Gets the value of the printObject property.
      Returns:
      possible object is YesNo
    • setPrintObject

      public void setPrintObject(YesNo value)
      Sets the value of the printObject property.
      Parameters:
      value - allowed object is YesNo
    • getPlacement

      public AboveBelow getPlacement()
      Gets the value of the placement property.
      Returns:
      possible object is AboveBelow
    • setPlacement

      public void setPlacement(AboveBelow value)
      Sets the value of the placement property.
      Parameters:
      value - allowed object is AboveBelow
    • getSystem

      public SystemRelation getSystem()
      Gets the value of the system property.
      Returns:
      possible object is SystemRelation
    • setSystem

      public void setSystem(SystemRelation value)
      Sets the value of the system property.
      Parameters:
      value - allowed object is SystemRelation
    • 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
    • getId

      public String getId()
      Gets the value of the id property.
      Returns:
      possible object is String
    • setId

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