]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/non-default-tuplet-numbers.ly
Implement non-standard tuplet numbers
[lilypond.git] / input / lsr / non-default-tuplet-numbers.ly
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 \version "2.12.3"
4
5 \header {
6   lsrtags = "rhythms"
7
8   texidoc = "
9 LilyPond also provides formatting functions to print tuplet numbers different
10 than the actual fraction, as well as to append a note value to the tuplet 
11 number or tuplet fraction.
12 "
13   doctitle = "Non-default tuplet numbers"
14 } % begin verbatim
15
16
17 \relative c'' {
18   \once \override TupletNumber #'text = #(tuplet-number::non-default-tuplet-denominator-text 7)
19   \times 2/3  { c4. c4. c4. c4. } % begin verbatim
20
21   \once \override TupletNumber #'text = #(tuplet-number::non-default-tuplet-fraction-text 12 7)
22   \times 2/3  { c4. c4. c4. c4. }
23   \once \override TupletNumber #'text = #(tuplet-number::append-note-wrapper (tuplet-number::non-default-tuplet-fraction-text 12 7) "8")
24   \times 2/3  { c4. c4. c4. c4. }
25
26   \once \override TupletNumber #'text = #(tuplet-number::append-note-wrapper tuplet-number::calc-denominator-text "4")
27   \times 2/3  { c8 c8 c8 c8 c8 c8 }
28   \once \override TupletNumber #'text = #(tuplet-number::append-note-wrapper tuplet-number::calc-fraction-text "4")
29   \times 2/3  { c8 c8 c8 c8 c8 c8 }
30
31   \once \override TupletNumber #'text = #(tuplet-number::fraction-with-notes "4." "8")
32   \times 2/3  { c4. c4. c4. c4. }
33   \once \override TupletNumber #'text = #(tuplet-number::non-default-fraction-with-notes 12 "8" 4 "4")
34   \times 2/3  { c4. c4. c4. c4. }
35 }