]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/compound-time-signatures.ly
LSR: update.
[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 %% Tags: rhythms
4 \version "2.11.35"
5
6 \header { texidoc = "
7 Odd 20th century time signatures (such as \"5/8\") can often be played
8 as compound time signatures (e.g. \"3/8 + 2/8\"), which combine two or
9 more inequal metrics. LilyPond can make such musics quite easy to read
10 and play, by explicitly printing the compound time signatures and
11 adapting the automatic beaming behaviour. (You can even add graphic
12 measure grouping indications, see the appropriate snippet in this
13 database.) 
14 " }
15 % begin verbatim
16 #(define (compound-time one two num)
17   (markup #:override '(baseline-skip . 0) #:number 
18    (#:line ((#:column (one num)) #:vcenter "+" (#:column (two num))))))
19
20
21 \relative {
22   %% compound time signature hack
23   \time 5/8
24   \override Staff.TimeSignature #'stencil = #ly:text-interface::print
25   \override Staff.TimeSignature #'text = #(compound-time "2" "3" "8" )
26   #(override-auto-beam-setting '(end 1 8 5 8) 1 4)
27   c8 d e fis gis | c fis, gis e d | c8 d e4  gis8
28 }