Jump to content

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

From LilyPond wiki
m New category
Tags: Mobile edit Mobile web edit
mNo edit summary
 
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">
<lilypond version="2.24">
Line 19: Line 19:
</lilypond>
</lilypond>


[[Category:Expressive marks]]
[[Category:Expressive marks]]
[[Category:Expressive marks]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]
[[Category:Snippet]]

Latest revision as of 13:51, 3 December 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
    }
  }
>>