lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: \RemoveEmptyStaves for drums?


From: Abraham Lee
Subject: Re: \RemoveEmptyStaves for drums?
Date: Sun, 6 Aug 2017 00:18:57 -0600

Hi, Molly!

On Sat, Aug 5, 2017 at 7:34 PM, Kieren MacMillan <address@hidden> 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 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]