Optional
opts: { Optional
attributes?: Partial<HarmonyAttributes>Optional
contents?: HarmonyContentsReadonly
schemaReadonly
attributes: { Readonly
arrangement: { Readonly
type: "optional"Readonly
value: { Readonly
choices: readonly ["horizontal", "vertical", "diagonal"]Readonly
type: "choices"Readonly
color: { Readonly
type: "optional"Readonly
value: { Readonly
pattern: RegExpReadonly
type: "regex"Readonly
zero: "#000000"Readonly
default-Readonly
label: "default-x"Readonly
type: "label"Readonly
value: { Readonly
type: "optional"Readonly
value: { Readonly
max: numberReadonly
min: numberReadonly
type: "float"Readonly
default-Readonly
label: "default-y"Readonly
type: "label"Readonly
value: { Readonly
type: "optional"Readonly
value: { Readonly
max: numberReadonly
min: numberReadonly
type: "float"Readonly
font-Readonly
type: "optional"Readonly
value: { Readonly
pattern: RegExpReadonly
type: "regex"Readonly
zero: " "Readonly
font-Readonly
type: "optional"Readonly
value: { Readonly
choices: readonly [{ Readonly
type: "choices"Readonly
font-Readonly
type: "optional"Readonly
value: { Readonly
choices: readonly ["normal", "italic"]Readonly
type: "choices"Readonly
font-Readonly
type: "optional"Readonly
value: { Readonly
choices: readonly ["normal", "bold"]Readonly
type: "choices"Readonly
id: { Readonly
type: "optional"Readonly
value: { Readonly
pattern: RegExpReadonly
type: "regex"Readonly
zero: "_"Readonly
placement: { Readonly
type: "optional"Readonly
value: { Readonly
choices: readonly ["above", "below"]Readonly
type: "choices"Readonly
print-Readonly
type: "optional"Readonly
value: { Readonly
choices: readonly ["yes", "no"]Readonly
type: "choices"Readonly
print-Readonly
type: "optional"Readonly
value: { Readonly
choices: readonly ["yes", "no"]Readonly
type: "choices"Readonly
relative-Readonly
label: "relative-x"Readonly
type: "label"Readonly
value: { Readonly
type: "optional"Readonly
value: { Readonly
max: numberReadonly
min: numberReadonly
type: "float"Readonly
relative-Readonly
label: "relative-y"Readonly
type: "label"Readonly
value: { Readonly
type: "optional"Readonly
value: { Readonly
max: numberReadonly
min: numberReadonly
type: "float"Readonly
system: { Readonly
type: "optional"Readonly
value: { Readonly
choices: readonly ["none", "only-top", "also-top"]Readonly
type: "choices"Readonly
type: { Readonly
type: "optional"Readonly
value: { Readonly
choices: readonly ["alternate", "explicit", "implied"]Readonly
type: "choices"Readonly
contents: readonly [{ Readonly
name: "harmony"Static
Readonly
schemaReadonly
attributes: { Readonly
arrangement: { Readonly
type: "optional"Readonly
value: { Readonly
choices: readonly ["horizontal", "vertical", "diagonal"]Readonly
type: "choices"Readonly
color: { Readonly
type: "optional"Readonly
value: { Readonly
pattern: RegExpReadonly
type: "regex"Readonly
zero: "#000000"Readonly
default-Readonly
label: "default-x"Readonly
type: "label"Readonly
value: { Readonly
type: "optional"Readonly
value: { Readonly
max: numberReadonly
min: numberReadonly
type: "float"Readonly
default-Readonly
label: "default-y"Readonly
type: "label"Readonly
value: { Readonly
type: "optional"Readonly
value: { Readonly
max: numberReadonly
min: numberReadonly
type: "float"Readonly
font-Readonly
type: "optional"Readonly
value: { Readonly
pattern: RegExpReadonly
type: "regex"Readonly
zero: " "Readonly
font-Readonly
type: "optional"Readonly
value: { Readonly
choices: readonly [{ Readonly
type: "choices"Readonly
font-Readonly
type: "optional"Readonly
value: { Readonly
choices: readonly ["normal", "italic"]Readonly
type: "choices"Readonly
font-Readonly
type: "optional"Readonly
value: { Readonly
choices: readonly ["normal", "bold"]Readonly
type: "choices"Readonly
id: { Readonly
type: "optional"Readonly
value: { Readonly
pattern: RegExpReadonly
type: "regex"Readonly
zero: "_"Readonly
placement: { Readonly
type: "optional"Readonly
value: { Readonly
choices: readonly ["above", "below"]Readonly
type: "choices"Readonly
print-Readonly
type: "optional"Readonly
value: { Readonly
choices: readonly ["yes", "no"]Readonly
type: "choices"Readonly
print-Readonly
type: "optional"Readonly
value: { Readonly
choices: readonly ["yes", "no"]Readonly
type: "choices"Readonly
relative-Readonly
label: "relative-x"Readonly
type: "label"Readonly
value: { Readonly
type: "optional"Readonly
value: { Readonly
max: numberReadonly
min: numberReadonly
type: "float"Readonly
relative-Readonly
label: "relative-y"Readonly
type: "label"Readonly
value: { Readonly
type: "optional"Readonly
value: { Readonly
max: numberReadonly
min: numberReadonly
type: "float"Readonly
system: { Readonly
type: "optional"Readonly
value: { Readonly
choices: readonly ["none", "only-top", "also-top"]Readonly
type: "choices"Readonly
type: { Readonly
type: "optional"Readonly
value: { Readonly
choices: readonly ["alternate", "explicit", "implied"]Readonly
type: "choices"Readonly
contents: readonly [{ Readonly
name: "harmony"Generated using TypeDoc
The
<harmony>
elementParent elements:
<measure>
(partwise),<part>
(timewise)The
<harmony>
element represents harmony analysis, including chord symbols in popular music as well as functional harmony analysis in classical music.The print-object attribute controls whether or not anything is printed due to the
<harmony>
element. The print suggestion attributes set the defaults for the harmony, but individual elements can override this with their own values.A
<harmony>
element can contain many stacked chords (e.g. V of II). Each individual chord including a required<kind>
element is referred to as a harmony-chord. Stacked chords or secondary functions are represented using a sequence of harmony-chords. For example, V of II would be represented by a harmony-chord with a 5 numeral followed by a harmony-chord with a 2 numeral.A
<root>
is a pitch name like C, D, E, while a<numeral>
is a scale degree like 1, 2, 3. The<root>
element is generally used with pop chord symbols, while the<numeral>
element is generally used with classical functional harmony and Nashville numbers. It is an either/or choice to avoid data inconsistency. The<function>
element, which represents Roman numerals with roman numeral text, has been deprecated as of MusicXML 4.0.https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/harmony/