Jump to content

Indicating cross-staff chords with arpeggio bracket: Difference between revisions

From LilyPond wiki
No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
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 <code>PianoStaff</code> must be set to accept cross-staff arpeggios and the arpeggios must be set to the bracket shape in the <code>PianoStaff</code> context.
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 <code>PianoStaff</code> must be set to accept cross-staff arpeggios, and the arpeggios must be set to the bracket shape in the <code>PianoStaff</code> context.


(Debussy, ''Les collines d'Anacapri,'' m. 65)
The following example typesets measure&nbsp;65 of Debussy’s prelude ''Les collines d'Anacapri''.


<lilypond version="2.24">
<lilypond version="2.24">
Line 8: Line 8:
   \override PianoStaff.Arpeggio.stencil =
   \override PianoStaff.Arpeggio.stencil =
     #ly:arpeggio::brew-chord-bracket
     #ly:arpeggio::brew-chord-bracket
   \new Staff {
 
    \relative c' {
   \new Staff \relative c' {
      \key b \major
    \key b \major
      \time 6/8
    \time 6/8
      b8-.(\arpeggio fis'-.\> cis-.
    b8-.(\arpeggio fis'-.\> cis-.
        e-. gis-. b-.)\!\fermata^\laissezVibrer \bar "||"
      e-. gis-. b-.)\!\fermata^\laissezVibrer \bar "||"
    }
   }
   }
   \new Staff {
 
    \relative c' {
   \new Staff \relative c' {
      \clef bass
    \clef bass
      \key b \major
    \key b \major
      <<
    << { <a e cis>2.\arpeggio } \\
        {
      { <a, e a,>2. } >>
          <a e cis>2.\arpeggio
        }
        \\
        {
          <a, e a,>2.
        }
      >>
    }
   }
   }
>>
>>
Line 36: Line 27:
[[Category:Keyboards]]
[[Category:Keyboards]]
[[Category:Real music]]
[[Category:Real music]]
[[Category:Included in the official documentation]][[Category:Snippet]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 07:44, 14 December 2025

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.

The following example typesets measure 65 of Debussy’s prelude Les collines d'Anacapri.

\version "2.24"

\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. } >>
  }
>>