Plugin API: harmony.text field is not available
I'm trying to write a plugin for which I need to be able to read the chord symbols in the current score. I can access the
Harmony object of a given
Segment (if there is one) through the
[annotations] property. I'd like to use the
harmony.text property to determine the quality/extensions etc of a chord symbol but in a newly opened score this field doesn't appear to be set properly (every
Harmony object has an empty string for it's text property).
After double clicking a chord symbol to edit it the text field contains the correct value (even if the chord is not modified - just opened for editing and then
esc is pressed immediately). Once the first chord is in edit mode, the other chords can be cycled through with
tab and their
text fields will be correct too.
Tested using MuseScore 2.2.1 and the 2.3 development branch on Arch Linux.