Any way to find out the staff index of a given note object?
Hi there
I'm creating a new plug-in, and I have a situation where it would be helpful if I could query a Note or Chord element to find out which staff index it is attached to. Although I can get the parent staff, there's no way to get the staff index from that Staff object.
Perhaps there is some way to query the score's staves property, and do an indexOf() to return the index number? I'm not sure that would be foolproof, though?