Creating cross-staff arpeggios in other contexts: Difference between revisions
Appearance
Import snippet from LSR |
mNo edit summary |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
Cross-staff ''arpeggios'' can be created in contexts other than <code>GrandStaff</code> and its derived siblings (<code>PianoStaff</code>, <code>ChoirStaff</code>, and <code>StaffGroup</code>) if the <code>Span_arpeggio_engraver</code> is included in the <code>Score</code> context. | Cross-staff ''arpeggios'' can be created in contexts other than <code>GrandStaff</code> and its derived siblings (<code>PianoStaff</code>, <code>ChoirStaff</code>, and <code>StaffGroup</code>) if the <code>Span_arpeggio_engraver</code> is included in the <code>Score</code> context. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
<< | << | ||
\new PianoStaff << | \new PianoStaff << | ||
| Line 31: | Line 31: | ||
</lilypond> | </lilypond> | ||
[[Category: | [[Category:Contexts and engravers]] | ||
[[Category:Expressive marks]] | [[Category:Expressive marks]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | |||
Latest revision as of 12:15, 9 December 2025
Cross-staff arpeggios can be created in contexts other than GrandStaff and its derived siblings (PianoStaff, ChoirStaff, and StaffGroup) if the Span_arpeggio_engraver is included in the Score context.
\version "2.24"
<<
\new PianoStaff <<
\new Voice \relative c' {
<c e>2\arpeggio <d f>2\arpeggio
<c e>1\arpeggio
}
\new Voice \relative c {
\clef bass
<c g'>2\arpeggio <b g'>2\arpeggio
<c g'>1\arpeggio
}
>>
\new Staff \relative c {
\set Score.connectArpeggios = ##t
\clef bass
c2\arpeggio g\arpeggio
c1\arpeggio
}
>>
\layout {
\context {
\Score
\consists "Span_arpeggio_engraver"
}
}