lilypond-user
[Top][All Lists]
Advanced

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

Re: Selectively remove some staves consisting only of rests


From: Reggie
Subject: Re: Selectively remove some staves consisting only of rests
Date: Tue, 5 Feb 2019 12:01:04 -0700 (MST)

Andrew Bernard wrote
> I want to remove some staves containing only rests and yet retain others
> in
> my quartet score. [When there is a long solo I want the other parts
> suppressed, but when just one instrument is at rest I want the empty staff
> to show in the set of four].
> 
> The keepAliveInterface must have something to do with it but my attempts
> lead nowhere. Here's an MWE where if somebody could show how to suppress
> one staff with rests but show the other this would set me on the path to
> enlightenment.
> 
> Andrew
> 
> %====
> \version "2.19.82"
> 
> violinOne = {
>   \override Staff.VerticalAxisGroup.remove-first = ##t
>   \set Staff.keepAliveInterfaces = #'()
>   \repeat unfold 8 { c''4 }
>   \break
>   \unset Staff.keepAliveInterfaces
> 
>   \repeat unfold 8 { r4 }
>   \break
>   \repeat unfold 8 { c''4 }
>   \break
>   % how can I show this line of rests?
>   \repeat unfold 8 { s4 }
>   \bar "."
> }
> 
> violinTwo = {
>   \repeat unfold 8 { c'4 }
>   \break
>   \repeat unfold 8 { c'4 }
>   \break
>   \repeat unfold 8 { c'4 }
>   \break
>   \repeat unfold 8 { c'4 }
> }
> 
> \score {
>   <<
>     \new Staff {
>       \violinOne
>     }
>     \new Staff {
>       \violinTwo
>     }
>   >>
>   \layout {
>     \context {
>       \Staff
>       \RemoveEmptyStaves
>     }
>   }
> }
> 
> %====
> 
> _______________________________________________
> lilypond-user mailing list

> lilypond-user@

> https://lists.gnu.org/mailman/listinfo/lilypond-user

I would also want to know how to do this basic layout setting which all
other notation Programs have done since the dawning of time. Select staves,
hide, nothing else effected by it. Select the staves you desire to hide and
they hide. You shouldn't have to sacrifice the entire score hiding staves
for this. Lilypond is so bizarre sometimes with things. Why is it not easy
to select staves to hide and they hide? Why do you need a complete score
hiding only? This really should be fixed.

Please Andrew email and share if you ever solve this thank you!!!!



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html



reply via email to

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