lilypond-user
[Top][All Lists]
Advanced

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

\RemoveEmptyStaffContext doesn't remove empty staff


From: Thomas Ruedas
Subject: \RemoveEmptyStaffContext doesn't remove empty staff
Date: Fri, 27 Apr 2012 01:51:20 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:12.0) Gecko/20120420 Thunderbird/12.0

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
    }
  }
}
--



reply via email to

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