Fixes Issue 1504, allowing feather beam line breaking.
[lilypond/patrick.git] / Documentation / snippets / new / non-default-tuplet-numbers.ly
blob5fc6f3fe8576af56fe23a6e0f04beb9a16624a18
1 \version "2.13.36"
3 \header {
4 lsrtags = "rhythms"
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.
11 doctitle = "Non-default tuplet numbers"
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. }
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 }
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. }