Note object and Tied properties is undefined
I modified a Note Names plugin to detect and not display a note name which tied to a previous note.
I used Tied properties from Note object (https://musescore.org/en/plugin-development/note-object).
function nameChord (notes, text) {
for (var i = 0; i < notes.length; i++) {
if (notes[i].tied == 2)
return
}
}
This is not work as expected because Tied properties is "undefined".
Comments
Well, that page describes 1.x plugins.
For 2.x check tieback instead
if (notes[i].tieBack)
In reply to Well, that page describes 1… by Jojo-Schmitz
Wonderful! Thank you.