]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/compound-time-signatures.ly
Merge branch 'master' of ssh+git://hanwen@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / input / lsr / compound-time-signatures.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.11.38"
4
5 \header {
6   lsrtags = "rhythms"
7  texidoc = "
8 Odd 20th century time signatures (such as \"5/8\") can often be played
9 as compound time signatures (e.g. \"3/8 + 2/8\"), which combine two or
10 more inequal metrics. LilyPond can make such music quite easy to read
11 and play, by explicitly printing the compound time signatures and
12 adapting the automatic beaming behaviour. (You can even add graphic
13 measure grouping indications; see the appropriate snippet in this
14 database.) 
15 " }
16 % begin verbatim
17 #(define (compound-time one two num)
18   (markup #:override '(baseline-skip . 0) #:number
19    (#:line ((#:column (one num)) #:vcenter "+" (#:column (two num))))
20   ))
21
22 \relative {
23   % compound time signature hack
24   \override Staff.TimeSignature #'stencil = #ly:text-interface::print
25   \override Staff.TimeSignature #'text = #( compound-time "2" "3" "8" )
26   \time 5/8
27   #(override-auto-beam-setting '(end 1 8 5 8) 1 4)
28   c8 d e fis gis |
29   c fis, gis e d |
30   c8 d e4  gis8
31 }