Creating arpeggios across notes in different voices: Difference between revisions
Appearance
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: | ||
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"> | ||
\new Staff \with { | \new Staff \with { | ||
\consists "Span_arpeggio_engraver" | \consists "Span_arpeggio_engraver" | ||
Revision as of 18:45, 16 November 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 }
>>
}