Jump to content

Creating cross-staff arpeggios in a piano staff: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Line 1: Line 1:
In a <code>PianoStaff</code>, it is possible to let an ''arpeggio'' cross between the staves by setting the property <code>PianoStaff.connectArpeggios</code>.
In a <code>PianoStaff</code>, it is possible to let an ''arpeggio'' cross between the staves by setting the property <code>PianoStaff.connectArpeggios</code>.


<lilypond version="2.24.0">
<lilypond version="2.24">
\new PianoStaff \relative c'' <<
\new PianoStaff \relative c'' <<
   \set PianoStaff.connectArpeggios = ##t
   \set PianoStaff.connectArpeggios = ##t

Revision as of 18:48, 16 November 2025

In a PianoStaff, it is possible to let an arpeggio cross between the staves by setting the property PianoStaff.connectArpeggios.

\version "2.24"

\new PianoStaff \relative c'' <<
  \set PianoStaff.connectArpeggios = ##t
  \new Staff {
    <c e g c>4\arpeggio
    <g c e g>4\arpeggio
    <e g c e>4\arpeggio
    <c e g c>4\arpeggio
  }
  \new Staff {
    \clef bass
    \repeat unfold 4 {
      <c,, e g c>4\arpeggio
    }
  }
>>