Adding new grace notes
I do not see a grace note ElementType that I can pass into newElement().
I'm trying to change the grace note type for a note and because a note's NoteType is read only it looks like I need to create a new grace element and add it to the score somehow. The graceNotes property on a chord element is read only so even if I could create a new grace note I'm sure how to replace the old grace note. Is this possible?
Comments
Can you specify which type you are looking for? Do you have an image of this grace note?
In reply to Can you specify which type… by Shoichi
I have a bunch of acciaccaturas I want to change to appoggiatura.
if (graceChords[chordNum].notes[i].noteType == NoteType.ACCIACCATURA) {
// change to NoteType.APPOGGIATURA somehow...
....
In reply to I have a bunch of… by de murcia
If I am right, only way to do this, is to remove Acciaccatura and create new Appoggiattura with
cmd("appoggiatura")
.In reply to If I am right, only way to… by sammik
You are right! I just had to add curScore.selection.select() to select the elements before a cmd() call. Thanks!