lilypond-user
[Top][All Lists]
Advanced

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

Re: help with cross-staff piano beams and stems


From: Xavier Scheuer
Subject: Re: help with cross-staff piano beams and stems
Date: Fri, 27 May 2011 23:56:57 +0200

On 27 May 2011 23:38, Sepand Shahab <address@hidden> wrote:
>
> Dear list members,
>
> How can I rewrite the following simplified example so that each quarter note
> unit has just one beam across the top of the upper staff and the four-note
> chords share cross-staff stems?

I would use something like this.
Please note that explicit  Voice  creation is needed due to the fact
that we use a  \change Staff  at the very beginning of "upper".

\version "2.12.3"

upper = \relative c' {
  \clef treble
  \change Staff = "Staff_pfLower"
  <c,, c'>8
  \change Staff = "Staff_pfUpper"
  <d'' e>16 <d e>
  <d e> <d e> <d e> <d e>
}

lower = \relative c, {
  \clef bass
  % stems may overlap the other staff
  \override Stem #'cross-staff = ##t
  % extend the stems to reach the other staff
  \override Stem #'length = #12
  % do not print extra flags
  \override Stem #'flag-style = #'no-flag
  % stems should be up
  \stemUp
  % prevent autobeaming
  \autoBeamOff
  s8  <a'' b>16 <a b>
  <a b> <a b> <a b> <a b>
}


\score {
  \new PianoStaff = "PianoStaff_pf" <<
    \new Staff = "Staff_pfUpper" <<
      \new Voice = "Voice_pfUpper" {
        \upper
      }
    >>
    \new Staff = "Staff_pfLower" <<
      \new Voice = "Voice_pfLower" {
        \lower
      }
    >>
  >>
}


Cheers,
Xavier

-- 
Xavier Scheuer <address@hidden>



reply via email to

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