]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/entering-several-tuplets-using-only-one--times-command.ly
Imported Upstream version 2.18.2
[lilypond.git] / Documentation / snippets / new / entering-several-tuplets-using-only-one--times-command.ly
1 \version "2.17.11"
2
3 \header {
4   lsrtags = "rhythms, syntax-and-expressions"
5
6   texidoc = "
7 The property @code{tupletSpannerDuration} sets how long each of the
8 tuplets contained within the brackets after @code{\\tuplet} should last.
9 Many consecutive tuplets can then be placed within a single
10 @code{\\tuplet} expression, thus saving typing.
11
12 There are several ways to set @code{tupletSpannerDuration}.  The command
13 @code{\\tupletSpan} sets it to a given duration, and clears it when
14 instead of a duration @code{\\default} is specified.  Another way is
15 to use an optional argument with @code{\\tuplet}.
16 "
17   doctitle = "Entering several tuplets using only one \\tuplet command"
18 }
19
20
21 \relative c' {
22   \time 2/4
23   \tupletSpan 4
24   \tuplet 3/2 { c8^"\\tupletSpan 4" c c c c c }
25   \tupletSpan \default
26   \tuplet 3/2 { c8^"\\tupletSpan \\default" c c c c c }
27   \tuplet 3/2 4 { c8^"\\tuplet 3/2 4 {...}" c c c c c }
28 }