]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/non-default-tuplet-numbers.ly
Run scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / Documentation / snippets / non-default-tuplet-numbers.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.16.0"
8
9 \header {
10   lsrtags = "rhythms"
11
12   texidoc = "
13 LilyPond also provides formatting functions to print tuplet numbers
14 different than the actual fraction, as well as to append a note value
15 to the tuplet number or tuplet fraction.
16
17 "
18   doctitle = "Non-default tuplet numbers"
19 } % begin verbatim
20
21 \relative c'' {
22   \once \override TupletNumber #'text =
23     #(tuplet-number::non-default-tuplet-denominator-text 7)
24   \times 2/3  { c4. c4. c4. c4. }
25   \once \override TupletNumber #'text =
26     #(tuplet-number::non-default-tuplet-fraction-text 12 7)
27   \times 2/3  { c4. c4. c4. c4. }
28   \once \override TupletNumber #'text =
29     #(tuplet-number::append-note-wrapper
30       (tuplet-number::non-default-tuplet-fraction-text 12 7) "8")
31   \times 2/3  { c4. c4. c4. c4. }
32
33   \once \override TupletNumber #'text =
34     #(tuplet-number::append-note-wrapper
35       tuplet-number::calc-denominator-text "4")
36   \times 2/3  { c8 c8 c8 c8 c8 c8 }
37   \once \override TupletNumber #'text =
38     #(tuplet-number::append-note-wrapper
39       tuplet-number::calc-fraction-text "4")
40   \times 2/3  { c8 c8 c8 c8 c8 c8 }
41
42   \once \override TupletNumber #'text =
43     #(tuplet-number::fraction-with-notes "4." "8")
44   \times 2/3  { c4. c4. c4. c4. }
45   \once \override TupletNumber #'text =
46     #(tuplet-number::non-default-fraction-with-notes 12 "8" 4 "4")
47   \times 2/3  { c4. c4. c4. c4. }
48 }