Accessing MeasureNumber element by plugin?
Is it possible to programmatically access arbitrary MeasureNumber elements within a score? (the elements you select when you click the measure numbers on the page – so you could adjust the visibility, offset, etc. of each)
I don't seem to get these when I iterate over Measure::elements, Segment::annotations, Segment::elementAt, etc. or with Cursor.
Currently, I have the user manually select a measure number before running the plugin, then execute
cmd("select-similar") and iterate over the current selection – but this seems unideal.
If this isn't possible, I might be willing to write a PR to add it to the plugin API, if anyone could point me in the right direction in the source code!