[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Locally disable hiding of empty staves?
From: |
Alexander Kobel |
Subject: |
Locally disable hiding of empty staves? |
Date: |
Mon, 25 Aug 2008 13:24:31 +0200 |
User-agent: |
Thunderbird 2.0.0.16 (Macintosh/20080707) |
Hi, all,
does anybody know whether/how it's possible to locally prevent staves
from hiding troughout a part of the piece? An example (and my best up to
now) is attached...
By the way, what happened to the LSR? Is there a mirror somewhere?
Cheers,
Alexander
\version "2.11.56"
#(set-global-staff-size 15)
\score {
<<
\new Staff = "solo" \with {
fontSize = #-2
\override StaffSymbol #'staff-space = #(magstep -2)
} {
\override Score.RehearsalMark #'self-alignment-X = #LEFT
\mark "This is all fine. The first system shows all
staves (yes, there will be a solo)..."
R1*7 \break
R1*8 \break
\mark "...as well as the third and fourth: the choir
staves are shown since remove-empty is set to false."
R1*8 \break
R1*8 \break
\bar "||"
\mark "But: Here goes the solo, where I don't want the
solo staff to vanish in between, even if there are only rests."
\override Staff.VerticalAxisGroup #'remove-empty = ##f
% does not work
\repeat unfold 8 { c''1 } \break
R1*8 \break
\repeat unfold 8 { c''1 } \break
\bar "|."
}
\new ChoirStaff <<
\new Staff = "women" \with {
\override VerticalAxisGroup #'remove-empty = ##f
% works as expected
} {
R1*7
\repeat unfold 8 { g'1 }
R1*8
\repeat unfold 8 { g'1 }
R1*24
}
\new Staff = "men" \with {
\override VerticalAxisGroup #'remove-empty = ##f
% works as expected
} {
\clef bass
R1*7
\repeat unfold 8 { c1 }
\repeat unfold 8 { c1 }
R1*8
\repeat unfold 24 { c1 }
}
>>
>>
\layout {
\context {
\RemoveEmptyStaffContext
}
}
}
RemoveEmptyStaff.ly.pdf
Description: Adobe PDF document
- Locally disable hiding of empty staves?,
Alexander Kobel <=