]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/modifying-tuplet-bracket-length.ly
Add '-dcrop' option to ps and svg backends
[lilypond.git] / Documentation / snippets / modifying-tuplet-bracket-length.ly
1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
5 %
6 % This file is in the public domain.
7 %% Note: this file works from version 2.19.0
8 \version "2.19.0"
9
10 \header {
11   lsrtags = "really-simple, rhythms"
12
13   texidoc = "
14 Tuplet brackets can be made to run to prefatory matter or the next
15 note. Default tuplet brackets end at the right edge of the final note
16 of the tuplet; full-length tuplet brackets extend farther to the right,
17 either to cover all the non-rhythmic notation up to the following note,
18 or to cover only the whitespace before the next item of notation, be
19 that a clef, time signature, key signature, or another note.  The
20 example shows how to switch tuplets to full length mode and how to
21 modify what material they cover.
22
23 "
24   doctitle = "Modifying tuplet bracket length"
25 } % begin verbatim
26
27
28 \new RhythmicStaff {
29   % Set tuplets to be extendable...
30   \set tupletFullLength = ##t
31   % ...to cover all items up to the next note
32   \set tupletFullLengthNote = ##t
33   \time 2/4
34   \tuplet 3/2 { c4 4 4 }
35   % ...or to cover just whitespace
36   \set tupletFullLengthNote = ##f
37   \time 4/4
38   \tuplet 5/4 { 4 1 }
39   \time 3/4
40   2.
41 }