On 4/27/12 01:51 , Thomas Ruedas wrote:
> 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
> }
> }
> }
Hi Thomas.
Check this thread:
<
http://lists.gnu.org/archive/html/lilypond-user/2010-11/msg00427.html>.
According to
<
http://lists.gnu.org/archive/html/lilypond-user/2010-11/msg00429.html>,
there was a new engraver added to keep alive every staff from a
PianoStaff while there's one of them alive.
You can remove that engraver by adding
\context {
\PianoStaff
\remove "Keep_alive_together_engraver"
}
to your \layout definitions.
Best.
--
Choan Gálvez
Ukecosas. Los ukeleles que nos gustan, también para ti
Visítanos: <
http://ukecosas.es/>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu....
https://lists.gnu.org/mailman/listinfo/lilypond-user
opensubscriber is not affiliated with the authors of this message nor responsible for its content.