How do I figure out the measure number of a Measure, Element, Segment or Cursor?

• Oct 23, 2024 - 20:52

I might be missing something, but I can't see any obvious way of determining the measure number from a given Measure, Element, Segment or Cursor. None of them has a 'measureNumber' property, which would be extremely useful. The only way I can think of to do it would be to iterate through all the measures in the score, calculating their total ticks, until I reach the tick of the object I'm currently at, which seems laborious.
Any tricks?


Comments

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