]> git.donarmstrong.com Git - lilypond.git/blob - input/test/compound-time.ly
Fix off-by-one error in constrained-breaking.
[lilypond.git] / input / test / compound-time.ly
1
2 \version "2.10.0"
3 \header {
4 texidoc = "@cindex compound time
5 @cindex plus
6
7 Compound time signatures can be printed.  Automatic beaming works in
8 compound time.
9
10 "
11 }
12
13 \layout{ragged-right = ##t}
14
15 #(define (compound-time grob one two num)
16   (interpret-markup
17    (ly:grob-layout grob)
18    '(((baseline-skip . 2)
19       (word-space . 2)
20       (font-family . number)))
21    (markup
22     #:line ( #:column (one num) #:lower 1 "+" #:column (two num)))))
23
24 \relative {
25   %% compound time signature hack
26   \time 5/8
27   \override Staff.TimeSignature  #'stencil
28   = #(lambda (grob) (compound-time grob "2" "3" "8"))
29   #(override-auto-beam-setting '(end 1 8 5 8) 1 4)
30   c8 c c8 c c
31 }
32