Previous: Staff-change lines, Up: Common notation for keyboards


Cross-staff stems

Chords that cross staves may be produced:

     
     \new PianoStaff <<
       \new Staff {
         \relative c' {
           f8 e4 d8 d f e4
         }
       }
       \new Staff {
         \relative c' {
           << {
             \clef bass
             % stems may overlap the other staff
             \override Stem #'cross-staff = ##t
             % extend the stems to reach other other staff
             \override Stem #'length = #12
             % do not print extra flags
             \override Stem #'flag-style = #'no-flag
             % prevent beaming as needed
             a8 g4 f8 f bes\noBeam g4
           }
           \\
           {
             f,2 bes4 c
           } >>
         }
       }
     >>

[image of music]

Selected Snippets

Indicating cross-staff chords with arpeggio bracket

An arpeggio bracket can indicate that notes on two different staves are to be played with the same hand. In order to do this, the PianoStaff must be set to accept cross-staff arpeggios and the arpeggios must be set to the bracket shape in the PianoStaff context.

(Debussy, Les collines d’Anacapri, m. 65)

     
     \paper { ragged-right = ##t }
     
     \new PianoStaff <<
       \set PianoStaff.connectArpeggios = ##t
       \override PianoStaff.Arpeggio #'stencil = #ly:arpeggio::brew-chord-bracket
       \new Staff {
         \relative c' {
           \key b \major
           \time 6/8
           b8-.(\arpeggio fis'-.\> cis-. e-. gis-. b-.)\!\fermata^\laissezVibrer
           \bar "||"
         }
       }
       \new Staff {
         \relative c' {
           \clef bass
           \key b \major
           <<
             {
               <a e cis>2.\arpeggio
             }
             \\
             {
               <a, e a,>2.
             }
           >>
         }
       }
     >>

[image of music]

See also

Snippets: Keyboards.

Internals Reference: Stem.

This page is for LilyPond-2.11.58 (development-branch).

Report errors to http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.

Your suggestions for the documentation are welcome.

Other languages: français, español, deutsch.