]> git.donarmstrong.com Git - lilypond.git/blob - input/new/non-default-tuplet-numbers.ly
Doc-es: pre-merge update of texidoc committishes.
[lilypond.git] / input / 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 = #(tuplet-number::non-default-tuplet-denominator-text 7)
16   \times 2/3  { c4. c4. c4. c4. }
17   \once \override TupletNumber #'text = #(tuplet-number::non-default-tuplet-fraction-text 12 7)
18   \times 2/3  { c4. c4. c4. c4. }
19   \once \override TupletNumber #'text =
20     #(tuplet-number::append-note-wrapper (tuplet-number::non-default-tuplet-fraction-text 12 7) "8")
21   \times 2/3  { c4. c4. c4. c4. }
22
23   \once \override TupletNumber #'text = #(tuplet-number::append-note-wrapper tuplet-number::calc-denominator-text "4")
24   \times 2/3  { c8 c8 c8 c8 c8 c8 }
25   \once \override TupletNumber #'text = #(tuplet-number::append-note-wrapper tuplet-number::calc-fraction-text "4")
26   \times 2/3  { c8 c8 c8 c8 c8 c8 }
27
28   \once \override TupletNumber #'text = #(tuplet-number::fraction-with-notes "4." "8")
29   \times 2/3  { c4. c4. c4. c4. }
30   \once \override TupletNumber #'text = #(tuplet-number::non-default-fraction-with-notes 12 "8" 4 "4")
31   \times 2/3  { c4. c4. c4. c4. }
32 }