]> git.donarmstrong.com Git - lilypond.git/blob - input/new/compound-time-signatures.ly
Doc-es: pre-merge update of texidoc committishes.
[lilypond.git] / input / new / compound-time-signatures.ly
1 \version "2.12.0"
2
3 \header {
4   lsrtags = "rhythms"
5   texidoc = "
6 Odd 20th century time signatures (such as \"5/8\") can often be played
7 as compound time signatures (e.g. \"3/8 + 2/8\"), which combine two or
8 more inequal metrics. LilyPond can make such music quite easy to read
9 and play, by explicitly printing the compound time signatures and
10 adapting the automatic beaming behavior. (Graphic measure grouping
11 indications can also be added; see the appropriate snippet in this
12 database.) 
13
14 "
15   doctitle = "Compound time signatures"
16 }
17
18 #(define ((compound-time one two num) grob)
19   (grob-interpret-markup grob
20     (markup #:override '(baseline-skip . 0) #:number
21       (#:line (
22           (#:column (one num))
23           #:vcenter "+"
24           (#:column (two num))))
25       )))
26
27 \relative c' {
28   \override Staff.TimeSignature #'stencil = #(compound-time "2" "3" "8")
29   \time 5/8
30   #(override-auto-beam-setting '(end 1 8 5 8) 1 4)
31   c8 d e fis gis
32   c8 fis, gis e d
33   c8 d e4 gis8
34 }