On 11/09/2024 17:39, Robert Garrigos
wrote:
Hi,
I have this piano excerpt I’m trying to reproduce:
<Cursor_and_CP_Schum_47_pdf.jpeg>
and I have this code:
how can I have the bf and the a in the second measure shared
across the staves??
You need the \change Staff command
https://lilypond.org/doc/v2.24/Documentation/notation/common-notation-for-keyboards#changing-staff-manually
\version "2.24.0"
\new PianoStaff <<
\time 3/4
\new Staff="upper" {
\clef "treble"
\new Voice {
\voiceOne d'8 c' bes4 a4
}
}
\new Staff="lower" <<
\clef "bass"
\new Voice \scaleDurations 2/3 {
\voiceOne
r8 c g
\change Staff="upper" \once\stemDown bes8 \change
Staff="lower" d g
\change Staff="upper" \once\stemDown a8 \change
Staff="lower" d fis
}
\new Voice {
\voiceTwo
e,4 d,2
}
>>
>>
--
Timothy Lanfear, Bristol, UK.