]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/entering-several-tuplets-using-only-one--times-command.ly
Imported Upstream version 2.18.2
[lilypond.git] / Documentation / snippets / entering-several-tuplets-using-only-one--times-command.ly
1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
5 %
6 % This file is in the public domain.
7 %% Note: this file works from version 2.17.11
8 \version "2.17.11"
9
10 \header {
11   lsrtags = "rhythms, syntax-and-expressions"
12
13   texidoc = "
14 The property @code{tupletSpannerDuration} sets how long each of the
15 tuplets contained within the brackets after @code{\\tuplet} should last.
16 Many consecutive tuplets can then be placed within a single
17 @code{\\tuplet} expression, thus saving typing.
18
19 There are several ways to set @code{tupletSpannerDuration}.  The command
20 @code{\\tupletSpan} sets it to a given duration, and clears it when
21 instead of a duration @code{\\default} is specified.  Another way is
22 to use an optional argument with @code{\\tuplet}.
23 "
24   doctitle = "Entering several tuplets using only one \\tuplet command"
25 } % begin verbatim
26
27
28
29 \relative c' {
30   \time 2/4
31   \tupletSpan 4
32   \tuplet 3/2 { c8^"\\tupletSpan 4" c c c c c }
33   \tupletSpan \default
34   \tuplet 3/2 { c8^"\\tupletSpan \\default" c c c c c }
35   \tuplet 3/2 4 { c8^"\\tuplet 3/2 4 {...}" c c c c c }
36 }