lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shared notes across piano staff


From: Robert Garrigos
Subject: Re: shared notes across piano staff
Date: Wed, 11 Sep 2024 20:04:21 +0200

Thanks Knute and Timothy,

I did try with change staff, but it seemed not to work, and I guess it was because the bar wasn’t finished.

Robert

El 11 set. 2024, a les 19:51, Timothy Lanfear <timothy@lanfear.me> va escriure:

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]