]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/entering-several-tuplets-using-only-one--times-command.ly
Imported Upstream version 2.18.0
[lilypond.git] / Documentation / snippets / entering-several-tuplets-using-only-one--times-command.ly
index 384c90017e2f978cb6f9f2bc1bb421f7ad27bac0..5e67e60d479c112c612c57e568dfe9d111641aca 100644 (file)
@@ -1,34 +1,36 @@
-%% DO NOT EDIT this file manually; it is automatically
-%% generated from LSR http://lsr.dsi.unimi.it
-%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
-%% and then run scripts/auxiliar/makelsr.py
-%%
-%% This file is in the public domain.
-\version "2.16.0"
+% 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{\\times} should last.
+tuplets contained within the brackets after @code{\\tuplet} should last.
 Many consecutive tuplets can then be placed within a single
-@code{\\times} expression, thus saving typing.
-
-In the example, two triplets are shown, while @code{\\times} was
-entered only once.
-
-
-Read the relevant sections of the Notation Reference for more
-information about @code{ly:make-moment}.
+@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 \\times command"
+  doctitle = "Entering several tuplets using only one \\tuplet command"
 } % begin verbatim
 
 
+
 \relative c' {
   \time 2/4
-  \set tupletSpannerDuration = #(ly:make-moment 1 4)
-  \times 2/3 { c8 c c c c c }
+  \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 }
 }