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