]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/non-default-tuplet-numbers.ly
Docs: reorganize documentation directory structure
[lilypond.git] / Documentation / snippets / new / non-default-tuplet-numbers.ly
1 \version "2.13.1"
2
3 \header {
4   lsrtags = "rhythms"
5
6   texidoc = "
7 LilyPond also provides formatting functions to print tuplet numbers different
8 than the actual fraction, as well as to append a note value to the tuplet 
9 number or tuplet fraction.
10 "
11   doctitle = "Non-default tuplet numbers"
12 }
13
14 \relative c'' {
15   \once \override TupletNumber #'text =
16     #(tuplet-number::non-default-tuplet-denominator-text 7)
17   \times 2/3  { c4. c4. c4. c4. }
18   \once \override TupletNumber #'text =
19     #(tuplet-number::non-default-tuplet-fraction-text 12 7)
20   \times 2/3  { c4. c4. c4. c4. }
21   \once \override TupletNumber #'text =
22     #(tuplet-number::append-note-wrapper
23       (tuplet-number::non-default-tuplet-fraction-text 12 7) "8")
24   \times 2/3  { c4. c4. c4. c4. }
25
26   \once \override TupletNumber #'text =
27     #(tuplet-number::append-note-wrapper
28       tuplet-number::calc-denominator-text "4")
29   \times 2/3  { c8 c8 c8 c8 c8 c8 }
30   \once \override TupletNumber #'text =
31     #(tuplet-number::append-note-wrapper
32       tuplet-number::calc-fraction-text "4")
33   \times 2/3  { c8 c8 c8 c8 c8 c8 }
34
35   \once \override TupletNumber #'text =
36     #(tuplet-number::fraction-with-notes "4." "8")
37   \times 2/3  { c4. c4. c4. c4. }
38   \once \override TupletNumber #'text =
39     #(tuplet-number::non-default-fraction-with-notes 12 "8" 4 "4")
40   \times 2/3  { c4. c4. c4. c4. }
41 }