How can a plugin see if a rest belongs to a tuplet?

• Jun 1, 2022 - 08:23

We can now see from a plugin if a note belongs to a tuplet with:
notes[i].parent.tuplet != null

But what about a rest belonging to a tuplet? I tried:
rest.parent.tuplet != null & variations, but that does not work.


Since a rest is already of the type ChordRest you don't need to go up to the parent (a Note lives within the Chord). So just rest.tuplet

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