]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/tuplet-number-kneed-beam-horizontal-fit.ly
Improve positioning of tuplet numbers for kneed beams.
[lilypond.git] / input / regression / tuplet-number-kneed-beam-horizontal-fit.ly
1 \version "2.19.3"
2
3 \header {
4   texidoc = "Tuplet numbers are placed next to the beam unless there is
5 insufficient horizontal space for them, in which case bracket-based
6 positioning is used and a programming error is issued."
7 }
8
9 #(ly:expect-warning (_ "not enough space for tuplet number against beam"))
10 #(ly:expect-warning (_ "not enough space for tuplet number against beam"))
11
12 \layout {
13   indent = 0
14   ragged-right = ##t
15 }
16
17 \score {
18   \relative c' {
19     \time 2/4
20     \override Beam.auto-knee-gap = 1
21     \tuplet 6/4 4 {
22       \once \override TupletNumber.text =
23         #tuplet-number::calc-fraction-text
24       c16 c'' c,, c'' c,, c''
25       \once \override TupletNumber.text =
26         #(tuplet-number::fraction-with-notes "16" "16")
27       c,,16 c'' c,, c'' c,, c''
28     }
29   }
30 }