]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/creating-cross-staff-arpeggios-in-other-contexts.ly
Update snippets from today's LSR with changed makelsr.py
[lilypond.git] / Documentation / snippets / creating-cross-staff-arpeggios-in-other-contexts.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.14.2"
8
9 \header {
10   lsrtags = "expressive-marks"
11
12   texidoc = "
13 Cross-staff arpeggios can be created in contexts other than
14 @code{GrandStaff}, @code{PianoStaff} and @code{StaffGroup} if the
15 @code{Span_arpeggio_engraver} is included in the @code{Score} context.
16
17 "
18   doctitle = "Creating cross-staff arpeggios in other contexts"
19 } % begin verbatim
20
21
22 \score {
23   \new ChoirStaff {
24     \set Score.connectArpeggios = ##t
25     <<
26       \new Voice \relative c' {
27         <c e>2\arpeggio
28         <d f>2\arpeggio
29         <c e>1\arpeggio
30       }
31       \new Voice \relative c {
32         \clef bass
33         <c g'>2\arpeggio
34         <b g'>2\arpeggio
35         <c g'>1\arpeggio
36       }
37     >>
38   }
39   \layout {
40     \context {
41       \Score
42       \consists "Span_arpeggio_engraver"
43     }
44   }
45 }