Hello list,
I am trying to add a line between notes to denote a "staff switch". However, the music is not on a single voice/staff. Problems listed after the snippet.
Here's how I did it:
%%%%%%%%%%%%%%%%%%%%%%
global = {
\time 12/8
}
rightHand = \relative c' {
\global
\showStaffSwitch
<b d a'>2.
<<
{ \voiceTwo \change Staff = down <b e g>4. } % <-- change here
\new Voice { \oneVoice r4. } % <-- and here
>>
\hideStaffSwitch
\change Staff = up
\voiceOne
<e g a c>4. |
}
leftHand = \relative c, {
\global
\clef bass
<c g' f'>2. s4. r |
}
\score {
\new GrandStaff <<
\new Staff = up \rightHand
\new Staff = down \leftHand
>>
}
%%%%%%%%%%%%%%%%%%%%%%%%%%
I think the key was keeping the context alive in the parallel music (<< >>)