Accessing Fingering from QML
Hi
I'm looking to access fingerings on one note.
This is how I tried, and all I can get is Staff text and Harmony.
var score = curScore; var m; m = score.firstMeasure; while (m) { var segment = m.firstSegment while (segment) { var element; element = segment.elementAt(0); if (element && element.type == Element.CHORD) { // The annotations var aCount = 0; var annotation = segment.annotations[aCount]; while (annotation) { debug2("annotation", annotation) annotation = segment.annotations[++aCount]; } } segment = segment.next; } m = m.nextMeasure; }
How can I reach the fingerings (read, create, delete them) ?
Thanks
Comments
Fingerings can be found in
Note.elements
list and can be added/removed withadd
/remove
methods, seeNote
class documentation:https://musescore.github.io/MuseScore_PluginAPI_Docs/plugins/html/class…
To add a new fingering you should create a
Fingering
object first and then add it to some note, something like this:In reply to Fingerings can be found in… by dmitrio95
Thanks.