Jump to content

Creating arpeggios across notes in different voices: Difference between revisions

From LilyPond wiki
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
An ''arpeggio'' can be drawn across notes in different voices on the same staff if the <code>Span_arpeggio_engraver</code> is added to the <code>Staff</code> context:
An ''arpeggio'' can be drawn across notes in different voices on the same staff if the <code>Span_arpeggio_engraver</code> is added to the <code>Staff</code> context.


<lilypond version="2.24">
<lilypond version="2.24">
Line 15: Line 15:
</lilypond>
</lilypond>


[[Category:Contexts and engravers]]
[[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 12:14, 9 December 2025

An arpeggio can be drawn across notes in different voices on the same staff if the Span_arpeggio_engraver is added to the Staff context.

\version "2.24"

\new Staff \with {
  \consists "Span_arpeggio_engraver"
}
\relative c' {
  \set Staff.connectArpeggios = ##t
  <<
    { <e' g>4\arpeggio <d f> <d f>2 }
    \\
    { <d, f>2\arpeggio <g b>2 }
  >>
}