[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Removing empty staves in a PianoStaff
From: |
Xavier Scheuer |
Subject: |
Re: Removing empty staves in a PianoStaff |
Date: |
Sat, 11 Jun 2011 09:11:47 +0200 |
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
--
Xavier Scheuer <address@hidden>