]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/entering-several-tuplets-using-only-one--times-command.ly
Run scripts/auxiliar/update-with-convert-ly.sh
[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 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, 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{\\times} should last.
15 Many consecutive tuplets can then be placed within a single
16 @code{\\times} expression, thus saving typing.
17
18 In the example, two triplets are shown, while @code{\\times} was
19 entered only once.
20
21
22 Read the relevant sections of the Notation Reference for more
23 information about @code{ly:make-moment}.
24
25 "
26   doctitle = "Entering several tuplets using only one \\times command"
27 } % begin verbatim
28
29
30 \relative c' {
31   \time 2/4
32   \set tupletSpannerDuration = #(ly:make-moment 1 4)
33   \times 2/3 { c8 c c c c c }
34 }