General Measure Numbers implementation
I am working on an implementation of measure numbers and would like to ask for some opinions about the implementation.
In short, it means that measure numbers can only be shown in this position:
1) There is no option to center over the measure. It is always placed left.
Documented in this issue
Combining these 2, it means that the following cannot be done without manually moving all measure numbers (and is the standard in film music)
Adding measure numbers to the palettes would be the first needed thing needed for versatility. Allow users to decide exactly when they want to show measure Numbers by simply dragging them from the palettes. All users should be good with how the palettes work by now, so that would be +1 for user-friendliness.
There already has been some work done for InspectorMeasureNumber, but it is empty so it never shows up.
Options the inspector would be:
1) Text style and
2) Vertical placement(Above|Below):
3) Horizontal placement (Left|Center|Right)
Now, if the user sets the (2) vertical placement to below, it likely that it is to place the measure number below the system, and not below the staff. So there could be another option:
4) System placement (Above system | Below system)
But now, what if the option measure number all staves is on. Then it is probably not what they need and we should hide option 4.
Also, 2 and 4 could also be merged into a single
2) Vertical placement (Above staff|Below staff|Above system|Below system). Would prevent cluttering the inspector, but might be less user-friendly? (less consistent too)
Should there be a
Which would simply override the default text provided? See this issue for a use-case
I would greatly appreciate any feedback on this. This would be what shows up under the style dialog->measure numbers
Who handles MeasureNumbers
When adding a measure number somewhere the element could either be added to the measure like a normal element, or the measure's
_nomode could be set to
The latter would be easier to implement but less versatile. The former would add the option to add a MeasureNumber to a note, which might be useful in contemporary music.
In short, this means: "Should measure numbers handle themselves, or should they be handled by their parent measure?"
Gould's words (p. 484 and 237, respectively):