The <harmony> element
Parent elements: <measure> (partwise)<part> (timewise)
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.
Content
In this order- In this order
- Exactly one of the following
- <kind> (Required)
- <inversion> (Optional)
- <bass> (Optional)
- <degree> (Zero or more times)
- <frame> (Optional)
- <offset> (Optional)
- In this order
- <footnote> (Required)
- <level> (Required)
- <staff> (Required)
Attributes
| Name | Type | Required? | Description |
|---|---|---|---|
| arrangement | harmony-arrangement | No | |
| color | color | No | |
| default-x | tenths | No | |
| default-y | tenths | No | |
| font-family | font-family | No | |
| font-size | font-size | No | |
| font-style | font-style | No | |
| font-weight | font-weight | No | |
| id | xs:ID | No | |
| placement | above-below | No | |
| print-frame | yes-no | No | |
| print-object | yes-no | No | |
| relative-x | tenths | No | |
| relative-y | tenths | No | |
| system | system-relation | No | |
| type | harmony-type | No |
Examples
This element is used in the following examples:
<bass-alter><bass-separator><bass-step><degree-type><degree-value><fingering> (Frame)<fret> (Frame)<inversion><kind><numeral-alter><numeral-key><numeral-root><root-alter><root-step>Tutorial: Chord Symbols