I am having two issues with a custom unpitched-percussion staff in a score.
Item 1: \RemoveEmptyStaves does not remove the percussion staff even though it suppresses other staves correctly. (I had the same problem with a non-customized DrumStaff or RhythmStaff when I tried that earlier.)
This feels like a bug to me.
Looking at the internals PDF, there is probably a one-line fix for this, where one symbol (the percussion clef maybe?) is in the keepAliveInterfaces list but should not be.
Can anyone tell me what I need to insert?
Item 2: I can't use a variable to insert the percussion music like I can everything else.
When I build my score,
<< \drummode {tri4 cymc4 tt4} >> works fine.
But << \perc >> , after having previously set perc = {\drummode { tri4 cymc4 tt4 R2.} }, fails with the error "warning: Ignoring non-music _expression_ {\perc}"
Tried several variations, with and without extra braces, etc.
I assume this one is operator error (<<>> or {} in the wrong place, \drummode in the wrong place, something...) but it has me confused.
Attached is an example of the problem score.
Thank you!
GRB