Am 09.08.23 um 03:12 schrieb William Rehwinkel via LilyPond user discussion:
\version "2.25.7"

\new PianoStaff <<
  \new Staff = "up" \relative g' { \voiceTwo g16 e c \change Staff = "do" \voiceOne g e g \change Staff = "up" \voiceTwo c e}
  \new Staff = "do" \with {\clef bass } s2
>>

This combination (\change Staff = ... \voiceXX) is so common that I tend to abbreviate it:

\version "2.25.7"

up = { \change Staff = up \voiceTwo }
down = { \change Staff = down \voiceOne }

\new PianoStaff <<
  \new Staff = up <<
    \new Voice {
      \voiceOne
      e''4 c'' c''2
      d''4 b'2 c''4
    }
    \new Voice \relative {
      \voiceTwo
      g'8 e c \down g e g \up c e
      f e f d e c g g'
  }
  >>
  \new Staff = down \with { \clef bass } {
    \voiceTwo c4 c c c
    \oneVoice c c c c
  }
>>

Lukas


Reply via email to