Pitch undefined for grace notes

• Aug 26, 2021 - 21:26

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

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)/

Do you still have an unanswered question? Please log in first to post your question.