Hi, Has something changed with respect to \RemoveEmptyStaffContext?
Initially I installed lilypond from the Ubuntu 10.04 package (lilypond version 2.12.3-4). In that version, the ly code pasted below prints just one staff (of course, there will be two staves for this instrument elsewhere, which is why I'm writing two). That's what I wanted. Then I installed 2.14.1 using the sh script. Now, it seems that \RemoveEmptyStaffContext is ignored -- both staves appear, with whole-measure rests in the bottom one. What's the best way to do it? This instrument[1] is most commonly notated with one staff, but when the writing gets more complicated, it can expand to two. It's not like a piano where both staves should be visible all the time, even if one or the other has only rests for a complete system. Maybe PianoStaff overrides \RemoveEmptyStaffContext? New behavior in 2.14? James [1] http://en.wikipedia.org/wiki/Sheng_%28instrument%29 ~~~ \version "2.14.1" \include "english.ly" global = { \key d \major \numericTimeSignature \time 4/4 } right = \relative c'' { \global % Music follows here. d8\p d4.~d2~d4. r8 r2 r4 d8 d8~d4. d16 d16~d4.\< d8~d8. <e d cs a gs d b>16->\sfz ~ d4\p ~ d4. r8 r8 d4 <d d'>32([ <d d,> <d d'> <d d,>]) d16-> d16 d4 \tieDown d16~ ( \tieNeutral <d e>16 ~ <d e>8) d4. } left = \relative c'' { \global % Music follows here. R1*6 } \score { \new PianoStaff \with { instrumentName = "Sheng" shortInstrumentName = "S." } << \new Staff = "right" { \right } \new Staff = "left" { \left } >> \layout { \context { \RemoveEmptyStaffContext % need to hide the left-hand staff when not used % may need to move this into staves later? \override VerticalAxisGroup #'remove-first = ##t } } } ~~~ -- James Harkins /// dewdrop world [email protected] http://www.dewdrop-world.net "Come said the Muse, Sing me a song no poet has yet chanted, Sing me the universal." -- Whitman blog: http://www.dewdrop-world.net/words audio clips: http://www.dewdrop-world.net/audio more audio: http://soundcloud.com/dewdrop_world/tracks _______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
