]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/entering-several-tuplets-using-only-one--tuplet-command.ly
Add '-dcrop' option to ps and svg backends
[lilypond.git] / Documentation / snippets / entering-several-tuplets-using-only-one--tuplet-command.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.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.18.0"
8
9 \header {
10   lsrtags = "rhythms, syntax-and-expressions"
11
12   texidoc = "
13 The property @code{tupletSpannerDuration} sets how long each of the
14 tuplets contained within the brackets after @code{\\tuplet} should
15 last. Many consecutive tuplets can then be placed within a single
16 @code{\\tuplet} expression, thus saving typing.
17
18 There are several ways to set @code{tupletSpannerDuration}.  The
19 command @code{\\tupletSpan} sets it to a given duration, and clears it
20 when instead of a duration @code{\\default} is specified.  Another way
21 is to use an optional argument with @code{\\tuplet}.
22
23 "
24   doctitle = "Entering several tuplets using only one \\tuplet command"
25 } % begin verbatim
26
27 \relative c' {
28   \time 2/4
29   \tupletSpan 4
30   \tuplet 3/2 { c8^"\\tupletSpan 4" c c c c c }
31   \tupletSpan \default
32   \tuplet 3/2 { c8^"\\tupletSpan \\default" c c c c c }
33   \tuplet 3/2 4 { c8^"\\tuplet 3/2 4 {...}" c c c c c }
34 }