lilypond-user
[Top][All Lists]
Advanced

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

Re: Hiding/unhiding empty staves


From: Thomas Morley
Subject: Re: Hiding/unhiding empty staves
Date: Wed, 6 Jan 2021 13:12:21 +0100

Am Mi., 6. Jan. 2021 um 13:04 Uhr schrieb Paolo Prete <paolopr976@gmail.com>:
>
> Hello,
>
> The following snippet hides "empty" staves in a system. But how can I unset 
> this behavior for selected staves?
> For example: I want to hide the empty staff in the second measure but in the 
> fourth measure I want to print the staff with its rest...
>
> Thanks for your help!
>
> ----------------------------------------------------
>
> upper  =  {
>
>  c'1 \break
>  r \break
>  c' \break
>  r
>
> }
>
> middle =  { d'1 d' d' d'}
> lower  =  { e'1 e' e' d'}
>
>
> \score {
>   \new PianoStaff <<
>     \new Staff = "upper" \upper
>     \new Staff = "middle" \middle
>     \new Staff = "lower" \lower
>   >>
>   \layout {
>     \context {
>       \Staff \RemoveEmptyStaves
>     }
>     \context {
>       \PianoStaff
>       \remove "Keep_alive_together_engraver"
>     }
>   }
> }

Probably
http://lsr.di.unimi.it/LSR/Item?id=312
helps.

Cheers,
  Harm



reply via email to

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