summaryrefslogtreecommitdiff
path: root/Documentation/snippets/entering-several-tuplets-using-only-one--times-command.ly
blob: 5e67e60d479c112c612c57e568dfe9d111641aca (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
% DO NOT EDIT this file manually; it is automatically
% generated from Documentation/snippets/new
% Make any changes in Documentation/snippets/new/
% and then run scripts/auxiliar/makelsr.py
%
% This file is in the public domain.
%% Note: this file works from version 2.17.11
\version "2.17.11"

\header {
  lsrtags = "rhythms, syntax-and-expressions"

  texidoc = "
The property @code{tupletSpannerDuration} sets how long each of the
tuplets contained within the brackets after @code{\\tuplet} should last.
Many consecutive tuplets can then be placed within a single
@code{\\tuplet} expression, thus saving typing.

There are several ways to set @code{tupletSpannerDuration}.  The command
@code{\\tupletSpan} sets it to a given duration, and clears it when
instead of a duration @code{\\default} is specified.  Another way is
to use an optional argument with @code{\\tuplet}.
"
  doctitle = "Entering several tuplets using only one \\tuplet command"
} % begin verbatim



\relative c' {
  \time 2/4
  \tupletSpan 4
  \tuplet 3/2 { c8^"\\tupletSpan 4" c c c c c }
  \tupletSpan \default
  \tuplet 3/2 { c8^"\\tupletSpan \\default" c c c c c }
  \tuplet 3/2 4 { c8^"\\tuplet 3/2 4 {...}" c c c c c }
}