How to get the system of a measure within a multimeasure rest?

• May 20, 2025 - 03:47

I notice that if you have a Measure element that is contained within a multimeasure rest, its parent is always null, rather than the system.

Any way to get the system from a multirest?


Comments

In reply to by michaelnorris

Yes, that's clearer... in an MMREST you don't see, for example, the layout breaks inserted in the middle; while it is visible if inserted in the last bar and the 'elements' object is not empty. Apart from unpacking the MMREST I see no other solution; however, it seems illogical to me that an MMREST incorporates within it an event inserted in the middle.
What I mean, is that software shouldn't behave like that.

Something is not clear to me... in a multi-measure rest there is a single element, called MMREST. Its hierarchy is SEGMENT - MEASURE - SYSTEM - PAGE, like any other single rest. I can't say anything else.

In reply to by michaelnorris

It's hard to answer because it's hard to figure out what you want to do. However, the starting tick of an MMREST is:
mmRest.parent.parent.firstSegment.tick
and the final tick
mmRest.parent.parent.lastSegment.tick
By obtaining the tick range of a single measure, it is possible to determine whether it is within the MMREST. Can this be of any use? Hard to say...

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