lilypond-user
[Top][All Lists]
Advanced

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

How does \RemoveEmptyStaffContext work in ly 2.14.1?


From: James Harkins
Subject: How does \RemoveEmptyStaffContext work in ly 2.14.1?
Date: Sun, 19 Jun 2011 13:56:44 +0800
User-agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

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
address@hidden
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



reply via email to

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