Hiding staves with rests only (for some/all voices)
…a long time, you might want to hide staves containing nothing (or only multi-measure rests). By default, … …layout. The first system would still show all staves for all voices. To force this setting to … …you still want to display all (even empty) staves, you need to set the remove-empty property of …
…layout { \context { % add the RemoveEmptyStaffContext that erases rest-only staves \Staff \RemoveEmptyStaves } \context { \Score % Remove all-rest staves also in the first system \override VerticalAxisGroup.remove-first = … …sop \set Staff.shortInstrumentName = "S" >> % never remove empty staves from the alto staff: \context Staff=alto \with { \…