Thank you - I meant to reply to the list. I have the following:
\version "2.19.82"
\header {
title = "CLOUDS AND SUNSHINE"
subtitle = "or, I'VE JUST ARRIVED FROM DIXIE"
composer = "George H. Coes (1828?-1897)"
}
\paper {
#(set-paper-size "a4")
}
\layout {
\context {
\Voice
\consists "Melody_engraver"
\override Stem #'neutral-direction = #'()
}
}
\layout {
\context {
\Staff
\RemoveAllEmptyStaves
}
}
paren =
#(define-event-function (parser location dyn) (ly:event?)
(make-dynamic-script
#{ \markup \concat {
\normal-text \italic \fontsize #2 (
\pad-x #0.2 #(ly:music-property dyn 'text)
\normal-text \italic \fontsize #2 )
}
#}))
global = {
\key f \major
\numericTimeSignature
\time 2/4
\partial 8
}
sopranoVoice = \relative c'' {
\global
\dynamicUp
r8 |
R2*20
}
right = \relative c'' {
\global
\partial 8 c,8 |
c c d8. e16 |
f8 a r a |
c[ b bes8. g16] |
g4. c8 |
\override DynamicLineSpanner.staff-padding = #3
d16\f d c d a' g f d |
c\paren\f c b c g' f c a |
c\p c b c e d b g
}
left = \relative c' {
\global
\partial 8 r8 |
\override Beam.damping = #10000 f,,[ <c' f a> <c f a>] r |
f,[ <c' f a> <c f a>] r |
c,[ <c' e bes'> <c e bes'>] r |
f,[ <c' f a> <c f a>] r |
\undo \override Beam.damping = #10000
bes[ <g' bes d> <g bes d>] r | \break
c,[ <a' c f> <a c f>] r |
c,[ <g' bes c e> <g bes c e>] r |
}
sopranoVoicePart = \new Staff \with {
instrumentName = ""
\consists "Ambitus_engraver"
} { \sopranoVoice }
pianoPart = \new PianoStaff \with {
instrumentName = ""
} <<
\new Staff = "right" \right
\new Staff = "left" { \clef bass \left }
>>
\score {
<<
\sopranoVoicePart
\pianoPart
>>
\layout { }
}
On Wed, Oct 31, 2018 at 12:54 AM Lukas-Fabian Moser <[email protected]> wrote:
> (Replying to list, assuming you wrote to me personally only by accident,
> as implied by your wording):
> Am 31.10.18 um 00:42 schrieb Rohan Srinivasan:
>
> Could any of you give me an example of how \RemoveAllEmptyStaves is used?
> I have:
>
> \layout {
> \context {
> \Staff
> \RemoveAllEmptyStaves
> }
> }
>
> This still doesn't seem to clear the empty staves in the first system.
>
> Please always try to provide a compilable minimal example showing your
> problem.
>
> \version "2.19.80"
>
> \layout {
> \context {
> \Staff
> \RemoveAllEmptyStaves
> }
> }
>
> <<
> \new Staff \with { instrumentName = "Voice" shortInstrumentName = "Voc"
> } { R1*30 \repeat unfold 80 c'4 }
> \new PianoStaff \with { instrumentName = "Piano" shortInstrumentName =
> "Pn" } <<
> \new Staff { \repeat unfold 200 c'4 }
> \new Staff { \clef bass \repeat unfold 400 c8 }
> >>
> >>
>
> works here:
>
> Best
> Lukas
>
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user