Harmony Object

Atnaujinta prieš 4 years

This documentation applies to plugins for 1.x only!


Documentation for 2.x+ is built into the Plugin Creator of Musescore.

( ⇒ In Musescore press Ctrl+Shift+P, then F1 to bring it up. )


Click here for Documentation for 3.x



Represents a type of chord.

A new Harmony can be created with:
  harmony = new Harmony(); or
  harmony = new Harmony(curScore);.

Once created and set, a Harmony can be attached to a Chord or to a Rest with the Chord.addHarmony(harmony) or with the Rest.addHarmony(harmony) methods respectively.

See also:

Chord Object , Rest Object .

Properties

Name Type Description
base integer Tonal Pitch Class enum of the chord base
id integer the chord id, as in styles/chords.xml
root integer Tonal Pitch Class enum of the chord root.

Methods

None.