Hi again,
I have a piano score in which there are sometimes two, sometimes three
staves, and I want the empty third staff to disappear during long
stretches in which it is empty. This used to work in an earlier version
(2.10) but after having converted to 2.14.2, it doesn't anymore. Below
follows a short example that reproduces the problem; it follows the
approach given in the example snippet from
http://lilypond.org/doc/v2.15/input/regression/collated-files.html,
which is similar to my original.
Any ideas, anybody?
Thanks,
Thomas
\version "2.14.2"
\paper {
#(set-paper-size "a4")
}
scoreAGlobal = {
\key bes \major
\numericTimeSignature
\time 6/8
\partial 8
}
scoreARight = {
\scoreAGlobal
\relative { \partial 16*2 g'16\p a
\repeat unfold 24 { bes4 f'8 }
}
}
scoreAMiddle = {
\scoreAGlobal
\relative { \partial 16*2 g,16 a
\repeat unfold 24 { bes4 f'8 }
}
}
scoreALeft = {
\scoreAGlobal
s8 s2.*10 % <--- doesn't work with r8 r8.*10 either
%
r4. r4 \relative { <a, a,>8~
%
<a a,>4 <a a,>8~ <a a,>4 r8
}
}
\score {
\new PianoStaff \with {
instrumentName = "Klavier"
} <<
\new Staff = "right" \with {
midiInstrument = "acoustic grand"
} \scoreARight
\new Staff = "middle" \with {
midiInstrument = "acoustic grand"
} { \clef bass \scoreAMiddle }
\new Staff = "left" \with {
midiInstrument = "acoustic grand"
} { \clef bass \scoreALeft }
>>
\layout {
\context {
\RemoveEmptyStaffContext
}
\context {
\Score
\override VerticalAxisGroup #'remove-first = ##t
}
}
}
--
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user