Inserting horizontal frames
It it possible for a plugin to insert horizontal frames into a score? If so, how?
How would I find horizontal frames that already exist in the score (e.g. to decide whether or not I want to add one)?
I'm also not seeing a way to insert measures at a point other than the end of the score; am I missing something?
Comments
I figured out how to do it: select the following measure, then run cmd("insert-hbox"); to insert before the selected measure. But how can I find them in the score? I think horizontal frames, like measures, are children of systems, which means I can't find them with the cursor because the cursor only finds segments which are children of measures. I can get to a system by looking at the parent of a measure, but I don't know how to find an hbox from there, and System doesn't seem to be an object class with documentation.
In reply to I figured out how to do it:… by phroggy
Looks like I've figured this out too: cmd("prev-frame")