]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/expressive/attaching-an-arpeggio-to-different-voices-inside-a-same-staff.ly
Merge branch 'master' into jneeman
[lilypond.git] / input / lsr / expressive / attaching-an-arpeggio-to-different-voices-inside-a-same-staff.ly
1 %%  Do not edit this file; it is auto-generated from LSR!
2 \version "2.11.23"
3
4 \header { texidoc = "
5 If you've read the manual, you already know that an arpeggio can be
6 drawn across to staves in PianoStaff context, if you set the
7 connectArpeggios property.
8
9 However, printing an arpeggio between two simultaneous chords inside a
10 same staff (with more than one voice), is a bit more tricky. As the
11 Span_arpeggio_engraver, which is in charge when arpeggios have to be
12 connected, is not included by default in the Staff context, you have to
13 add it by yourself using the \consists command.
14 " }
15
16 \layout {
17  \context {
18    \Staff
19    \consists Span_arpeggio_engraver
20  }
21 }
22
23 \new Staff
24  {
25  \set Staff.connectArpeggios = ##t
26  <<
27   {<e'' g''>4\arpeggio <d'' f''>4 <d'' f''>2 }
28     \\
29   {<d' f' >2\arpeggio  <g' b'>2  }
30  >>
31
32 }