]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/compound-time-signatures.ly
Docs: run convert-ly for 2.14.0.
[lilypond.git] / Documentation / snippets / new / compound-time-signatures.ly
1 \version "2.14.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   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 ((#:column (one num))
21                                            #:vcenter "+"
22                                            (#:column (two num)))))))
23
24 \relative c' {
25   \override Staff.TimeSignature #'stencil = #(compound-time "2" "3" "8")
26   \time 5/8
27   \set Staff.beatStructure = #'(2 3)
28   c8 d e fis gis
29   c8 fis, gis e d
30   c8 d e4 gis8
31 }