That works very well, Andrew. I'll have to investigate the \tag command
a bit more. It might be useful in my orchestral piece. Best,
Jon
Andrew Hawryluk wrote:
Yes. Replace "\layout {}" with "\layout { \context{
\RemoveEmptyStaffContext}}" and the empty staff disappears. You can
also place the \break in the "csu" command to make it easier to use.
Maybe you could even add a \tag so this only takes effect in the full
score and the individual instrumental parts are unaffected by the
staff switch or the forced line breaks.
Andrew
\version "2.11.62"
csu = {\change Staff = up \break}
up = \relative c'' {
\repeat unfold 3 { c4 d e d | }
\voiceOne c4 d e d
}
down = \relative c' {
\repeat unfold 2 { c4 d e d |}
c8 d e f g f g a16 b |
\csu \voiceTwo c4 d e d
}
\score {
\new StaffGroup <<
\new Staff = "up" <<
\up
>>
\new Staff = "down" <<
\down
>>
>>
\layout { \context{ \RemoveEmptyStaffContext}}
\midi {}
}
On Sun, Oct 19, 2008 at 5:34 PM, Jonathan Kulp <[EMAIL PROTECTED]> wrote:
I created a short example doing this with the staff-change command and it
gets the lower voice into the upper staff just fine, with the noteheads
merged and the stems going opposite directions, but the vacated staff
doesn't disappear like I think Stefan wanted. Is this the sort of thing you
envisioned, Andrew?
\version "2.11.62"
csu = \change Staff = up
up = \relative c'' {
\repeat unfold 3 { c4 d e d | }
\break
\voiceOne c4 d e d
}
down = \relative c' {
\repeat unfold 2 { c4 d e d |}
c8 d e f g f g a16 b |
\csu \voiceTwo c4 d e d
}
\score {
\new StaffGroup <<
\new Staff = "up" <<
\up
>>
\new Staff = "down" <<
\down
>>
>>
\layout {}
\midi {}
}
--
Jonathan Kulp
http://www.jonathankulp.com
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user