Package org.audiveris.proxymusic
Class Harmony
java.lang.Object
org.audiveris.proxymusic.Harmony
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 Summary
FieldsModifier and TypeFieldDescriptionprotected HarmonyArrangementprotected Stringprotected BigDecimalprotected BigDecimalprotected Stringprotected Stringprotected FontStyleprotected FontWeightprotected FormattedTextprotected Frameprotected Stringprotected Levelprotected Offsetprotected AboveBelowprotected YesNoprotected YesNoprotected BigDecimalprotected BigDecimalprotected BigIntegerprotected SystemRelationprotected HarmonyType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the arrangement property.getColor()Gets the value of the color property.Gets the value of the defaultX property.Gets the value of the defaultY 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 footnote property.getFrame()Gets the value of the frame property.Gets the value of the harmonyChord property.getId()Gets the value of the id property.getLevel()Gets the value of the level property.Gets the value of the offset property.Gets the value of the placement property.Gets the value of the printFrame property.Gets the value of the printObject property.Gets the value of the relativeX property.Gets the value of the relativeY property.getStaff()Gets the value of the staff property.Gets the value of the system property.getType()Gets the value of the type property.voidsetArrangement(HarmonyArrangement value) Sets the value of the arrangement property.voidSets the value of the color property.voidsetDefaultX(BigDecimal value) Sets the value of the defaultX property.voidsetDefaultY(BigDecimal value) Sets the value of the defaultY 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.voidsetFootnote(FormattedText value) Sets the value of the footnote property.voidSets the value of the frame property.voidSets the value of the id property.voidSets the value of the level property.voidSets the value of the offset property.voidsetPlacement(AboveBelow value) Sets the value of the placement property.voidsetPrintFrame(YesNo value) Sets the value of the printFrame property.voidsetPrintObject(YesNo value) Sets the value of the printObject property.voidsetRelativeX(BigDecimal value) Sets the value of the relativeX property.voidsetRelativeY(BigDecimal value) Sets the value of the relativeY property.voidsetStaff(BigInteger value) Sets the value of the staff property.voidsetSystem(SystemRelation value) Sets the value of the system property.voidsetType(HarmonyType value) Sets the value of the type property.
-
Field Details
-
harmonyChord
-
frame
-
offset
-
footnote
-
level
-
staff
-
type
-
printFrame
-
arrangement
-
printObject
-
placement
-
system
-
color
-
fontFamily
-
fontStyle
-
fontSize
-
fontWeight
-
defaultX
-
defaultY
-
relativeX
-
relativeY
-
id
-
-
Constructor Details
-
Harmony
public Harmony()
-
-
Method Details
-
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
setmethod 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
RootNumeralStyleTextKindInversionBassDegree -
getFrame
Gets the value of the frame property.- Returns:
- possible object is
Frame
-
setFrame
Sets the value of the frame property.- Parameters:
value- allowed object isFrame
-
getOffset
Gets the value of the offset property.- Returns:
- possible object is
Offset
-
setOffset
Sets the value of the offset property.- Parameters:
value- allowed object isOffset
-
getFootnote
Gets the value of the footnote property.- Returns:
- possible object is
FormattedText
-
setFootnote
Sets the value of the footnote property.- Parameters:
value- allowed object isFormattedText
-
getLevel
Gets the value of the level property.- Returns:
- possible object is
Level
-
setLevel
Sets the value of the level property.- Parameters:
value- allowed object isLevel
-
getStaff
Gets the value of the staff property.- Returns:
- possible object is
BigInteger
-
setStaff
Sets the value of the staff property.- Parameters:
value- allowed object isBigInteger
-
getType
Gets the value of the type property.- Returns:
- possible object is
HarmonyType
-
setType
Sets the value of the type property.- Parameters:
value- allowed object isHarmonyType
-
getPrintFrame
Gets the value of the printFrame property.- Returns:
- possible object is
YesNo
-
setPrintFrame
Sets the value of the printFrame property.- Parameters:
value- allowed object isYesNo
-
getArrangement
Gets the value of the arrangement property.- Returns:
- possible object is
HarmonyArrangement
-
setArrangement
Sets the value of the arrangement property.- Parameters:
value- allowed object isHarmonyArrangement
-
getPrintObject
Gets the value of the printObject property.- Returns:
- possible object is
YesNo
-
setPrintObject
Sets the value of the printObject property.- Parameters:
value- allowed object isYesNo
-
getPlacement
Gets the value of the placement property.- Returns:
- possible object is
AboveBelow
-
setPlacement
Sets the value of the placement property.- Parameters:
value- allowed object isAboveBelow
-
getSystem
Gets the value of the system property.- Returns:
- possible object is
SystemRelation
-
setSystem
Sets the value of the system property.- Parameters:
value- allowed object isSystemRelation
-
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
-
getDefaultX
Gets the value of the defaultX property.- Returns:
- possible object is
BigDecimal
-
setDefaultX
Sets the value of the defaultX property.- Parameters:
value- allowed object isBigDecimal
-
getDefaultY
Gets the value of the defaultY property.- Returns:
- possible object is
BigDecimal
-
setDefaultY
Sets the value of the defaultY property.- Parameters:
value- allowed object isBigDecimal
-
getRelativeX
Gets the value of the relativeX property.- Returns:
- possible object is
BigDecimal
-
setRelativeX
Sets the value of the relativeX property.- Parameters:
value- allowed object isBigDecimal
-
getRelativeY
Gets the value of the relativeY property.- Returns:
- possible object is
BigDecimal
-
setRelativeY
Sets the value of the relativeY property.- Parameters:
value- allowed object isBigDecimal
-
getId
Gets the value of the id property.- Returns:
- possible object is
String
-
setId
Sets the value of the id property.- Parameters:
value- allowed object isString
-