Gordon Bower <g...@taigabridge.net> writes:

> Success! Thank you for the fast response.
>
>
>> Your \layout with
>> \context { \Staff \RemoveEmptyStaves }
>> works as expected, but you want to remove _DrumStaff_, add.
>> \context { \DrumStaff \RemoveEmptyStaves }
>>
>
> I was thinking of a DrumStaff as a sub-type of staff.
> As long as I think of Staff, DrumStaff, RhythmStaff, GrandStaff, etc as
> separate objects, this makes sense.

Well, LilyPond thinks of them as separate things.  There is \alias in
context definitions which allows a DrumStaff to satisfy a Staff.xxx
specification in an override.  But while it can serve as a Staff in that
respect (but not for hosting a Voice context, for example), it is still
entirely separate.

-- 
David Kastrup

Reply via email to