lilypond-user
[Top][All Lists]
Advanced

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

Re: Removing empty staves in a PianoStaff


From: Edward Neeman
Subject: Re: Removing empty staves in a PianoStaff
Date: Sat, 11 Jun 2011 07:19:39 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10

Aha! Thanks!

Edward

On 6/11/11 3:11 AM, Xavier Scheuer wrote:
On 11 June 2011 06:29, Edward Neeman <address@hidden> wrote:
Hello,

How do you remove empty staves from a PianoStaff context?  The following
used to work in 2.12, but it no longer works in 2.14:


%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.14.0"

\new PianoStaff <<
\relative c' { c1 \break c \break c \break}

\relative c' { R1 \break R \break c \break }


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

%%%%%%%%%%%%%%%%%%%%
This is a feature!
PianoStaff are now removed only if both staves are empty.
To be able to remove staves from  PianoStaff  independently, simply add

  \context {
    \PianoStaff
    \remove "Keep_alive_together_engraver"
  }

to your  \layout  block.

Cheers,
Xavier


reply via email to

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