How to get the system of a measure within a multimeasure rest?
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?
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?
Do you still have an unanswered question? Please log in first to post your question.
Comments
Purest WAG!
Turn off MMR and then turn them back on. (No, I don't even know if this is possible :-)
In reply to Purest WAG! Turn off MMR and… by TheHutch
Hah, yes this worked (cmd('toggle-mmrest'))
When I tried the second solution, measure.elements came back empty.
In reply to Hah, yes this worked (cmd(… 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.
In reply to Hah, yes this worked (cmd(… by michaelnorris
I'm mildly astonished! My Wild @$$ guess (WAG) was actually right :-O
In reply to I'm mildly astonished! My… by TheHutch
My sincerest congratulations! :-)
In reply to I'm mildly astonished! My… by TheHutch
WAG?
Wild ... Guess?
In reply to WAG? Wild ... Guess? by Jojo-Schmitz
Yes, a common engineering term: "Wild @$$ Guess". One's very first, off-the-cuff estimate. Generally within one or two orders of magnitude of what one discovers later to be an actually reasonable figure.
In reply to Yes, a common engineering… by TheHutch
Ah! ;-)
I'd rather use "educated guess" ;-)
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 Something is not clear to me… by ILPEPITO
Unfortunately, I now have a second routine that is failing: this routine needs to find the location of specific systems on the page, so temporarily switching MMRs off won't help me as it will affect the system locations.
If you have any other thoughts, I'd love to hear them....
In reply to Unfortunately, I now have a… by michaelnorris
I wish you could just do: curScore.systems
In reply to Something is not clear to me… by ILPEPITO
I figured out that you can map all of the mmrs in a score by examining the blue selection. However, how do you figure out which mmr any given measure is part of?
In reply to I figured out that you can… 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...