]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/using-ties-with-arpeggios.ly
Imported Upstream version 2.16.0
[lilypond.git] / Documentation / snippets / using-ties-with-arpeggios.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.16.0"
8
9 \header {
10   lsrtags = "rhythms"
11
12   texidoc = "
13 Ties are sometimes used to write out arpeggios.  In this case, two tied
14 notes need not be consecutive.  This can be achieved by setting the
15 @code{tieWaitForNote} property to @code{#t}.  The same feature is also
16 useful, for example, to tie a tremolo to a chord, but in principle, it
17 can also be used for ordinary consecutive notes.
18
19 "
20   doctitle = "Using ties with arpeggios"
21 } % begin verbatim
22
23
24 \relative c' {
25   \set tieWaitForNote = ##t
26   \grace { c16[ ~ e ~ g] ~ } <c, e g>2
27   \repeat tremolo 8 { c32 ~ c' ~ } <c c,>1
28   e8 ~ c ~ a ~ f ~ <e' c a f>2
29   \tieUp
30   c8 ~ a
31   \tieDown
32   \tieDotted
33   g8 ~ c g2
34 }