Idea for ossia / temporary / cutaway staff support
On a fairly regular basis we get requests for for features that basically amount to extensions to the current "Hide Empty Staves" mechanism:
Ossia - a measure that appears "floating" above another staff, such as to provide an alternate intepretation
Temporary staff - a staff that only appears when not empty even though you are not otherwise wanting to hide empty staves
Cutaway staff - like the above, but empty measures are invisible - basically, a whole bunch of ossias
It occurs to me there is a way to provide some support for these relatively simply by adding two options to Staff Properties:
- "Always hide when empty"
- "Mark empty measures invisible"
The result of setting both options would be that only measures with content would display at all. Basically, that would do an ossia or a cutaway staff. Here's an example with the staff also made small (I also modified the code to not draw system-initial initial barlines in such cases):
If you set the first option but not the second, that would give you the "temporary staff" that is occasionally requested. Basically the same as turning on Hide Empty Staves and setting all other staves to "Never hide".