]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/modifying-tuplet-bracket-length.ly
Imported Upstream version 2.19.45
[lilypond.git] / Documentation / snippets / new / modifying-tuplet-bracket-length.ly
1 \version "2.19.0"
2
3 \header {
4   lsrtags = "really-simple, rhythms"
5
6   texidoc = "
7 Tuplet brackets can be made to run to prefatory matter or the next
8 note. Default tuplet brackets end at the right edge of the final note
9 of the tuplet; full-length tuplet brackets extend farther to the right,
10 either to cover all the non-rhythmic notation up to the following note,
11 or to cover only the whitespace before the next item of notation, be
12 that a clef, time signature, key signature, or another note.  The
13 example shows how to switch tuplets to full length mode and how to
14 modify what material they cover.
15
16 "
17   doctitle = "Modifying tuplet bracket length"
18 }
19
20 \new RhythmicStaff {
21   % Set tuplets to be extendable...
22   \set tupletFullLength = ##t
23   % ...to cover all items up to the next note
24   \set tupletFullLengthNote = ##t
25   \time 2/4
26   \tuplet 3/2 { c4 4 4 }
27   % ...or to cover just whitespace
28   \set tupletFullLengthNote = ##f
29   \time 4/4
30   \tuplet 5/4 { 4 1 }
31   \time 3/4
32   2.
33 }