]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/modifying-tuplet-bracket-length.ly
Merge branch 'lilypond/translation'
[lilypond.git] / Documentation / snippets / modifying-tuplet-bracket-length.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.31"
5
6 \header {
7   lsrtags = "rhythms"
8
9   texidoc = "
10 Tuplet brackets can be made to run to prefatory matter or the next
11 note. Default tuplet brackets end at the right edge of the final note
12 of the tuplet; full-length tuplet brackets extend farther to the right,
13 either to cover all the non-rhythmic notation up to the following note,
14 or to cover only the whitespace before the next item of notation, be
15 that a clef, time signature, key signature, or another note.  The
16 example shows how to switch tuplets to full length mode and how to
17 modify what material they cover.
18
19 "
20   doctitle = "Modifying tuplet bracket length"
21 } % begin verbatim
22
23 \new RhythmicStaff {
24   % Set tuplets to be extendable...
25   \set tupletFullLength = ##t
26   % ...to cover all items up to the next note
27   \set tupletFullLengthNote = ##t
28   \time 2/4
29   \times 2/3 { c4 c c }
30   % ...or to cover just whitespace
31   \set tupletFullLengthNote = ##f
32   \time 4/4
33   \times 4/5 { c4 c1 }
34   \time 3/4
35   c2.
36 }
37