Hi, Molly!

On Sat, Aug 5, 2017 at 7:34 PM, Kieren MacMillan <
kieren_macmil...@sympatico.ca> wrote:

>
> > However I can't seem to get it to \RemoveEmptyStaves for the \DrumStaff.
> This is what I tried.
> >
> > \layout {
> > \context {
> > \Staff
> > \RemoveEmptyStaves
> > \DrumStaff
> > \RemoveEmptyStaves
> >   }
>
> To be honest, I'm not even sure *what* that would do…   =\
>
> Here's what I just tried, and it seems to work:
>
> %%%%  SNIPPET BEGINS
> \version "2.19"
>
> \layout {
>   \context {
>     \DrumStaff
>     \RemoveAllEmptyStaves
>   }
> }
>

The problem you ran into is that you were combining things that shouldn't
have been. In other words, \Staff and \DrumStaff need to be in their own
\context block, as Kieren hinted at. More fully, this should work for you:

\layout {
  \context {
    \Staff
    \RemoveEmptyStaves
  }
  \context {
    \DrumStaff
    \RemoveEmptyStaves
  }
}

HTH,
Abraham
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to