]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/compound-time-signatures.ly
LSR: Update.
[lilypond.git] / Documentation / snippets / new / compound-time-signatures.ly
1 \version "2.13.4"
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   doctitle = "Compound time signatures"
15 }
16
17 #(define ((compound-time one two num) grob)
18   (grob-interpret-markup grob
19     (markup #:override '(baseline-skip . 0) #:number
20       (#:line (
21           (#:column (one num))
22           #:vcenter "+"
23           (#:column (two num)))))))
24
25 \relative c' {
26   \override Staff.TimeSignature #'stencil = #(compound-time "2" "3" "8")
27   \time 5/8
28   \overrideBeamSettings #'Staff #'(5 . 8) #'end
29     #'((* . (2 3)))
30   c8 d e fis gis
31   c8 fis, gis e d
32   c8 d e4 gis8
33 }