How to access ”tied” property of note?
Now I'm rewriting the shakuhachi notation plugin for the ver.2.
The notation doesn't need at the note to tied to previous note ( to avoid duplication ), so I want to check the tied property.
console.log(notes[0].pitch)
console.log(notes[0].tpc)
console.log(notes[0].color)
works well.
But
console.log(notes[0].tied)
returns
Debug: indefined
Please tells me the usage of tied properties.
In addition,
console.log(note[0].noteHead)
returns
Debug: indefined
console.log(note[0].name)
returns
function() { [code] }
Comments
I can't find a property named tie for notes (in the Plugin APIs) and no name (what would you expect that to contain?) or noteHead either, but there is tieFor, tieback, headType and headGroup.
Check the Plugin Editor's help
In reply to I can't find a property named by Jojo-Schmitz
I looked at
Home › Plugin Development ›Note Object
https://musescore.org/en/plugin-development/note-object
tied integer
0: not tied
1: tied to next note
2: tied to previous note
3: tied to both previous and next note.
I checked the Plugin Editor's help, and problem solved.
Thank you.
In reply to I looked at Home › Plugin by tcbnhrs
You looked at the documentation for the old 1.x plugins...