Pitch undefined for grace notes
Can anyone please help me with grace notes in the attached plugin ?
All of the grace notes are displayed in the attached debug output but
their pitches are all undefined.
Thanks in advance
Attachment | Size |
---|---|
ListNotes.qml | 5.51 KB |
debugoutput.png | 53.87 KB |
Sandbox.mscz | 4.16 KB |
Comments
Check the notenames plugin, that does get the names for them
Because
graceNotes[noteindex].notes
gives You list of notes in grace chord, not a single note.You can use
var note = graceNotes[noteindex].notes[0];
/or needs to loop thru each grace chord to get all notes (if there is more then one)/
In reply to Because graceNotes[noteindex… by sammik
That indeed is what the notenames plugin does :-)
In reply to That indeed is what the… by Jojo-Schmitz
Many thanks,
Problem fixed !