]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/compound-time-signatures.ly
Run scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / Documentation / snippets / compound-time-signatures.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.16.0"
8
9 \header {
10   lsrtags = "rhythms"
11
12   texidoc = "
13 Odd 20th century time signatures (such as \\\"5/8\\\") can often be
14 played as compound time signatures (e.g. \\\"3/8 + 2/8\\\"), which
15 combine two or more inequal metrics. LilyPond can make such music quite
16 easy to read and play, by explicitly printing the compound time
17 signatures and adapting the automatic beaming behavior.
18
19 "
20   doctitle = "Compound time signatures"
21 } % begin verbatim
22
23 #(define ((compound-time one two num) grob)
24    (grob-interpret-markup grob
25                           (markup #:override '(baseline-skip . 0) #:number
26                                   (#:line ((#:column (one num))
27                                            #:vcenter "+"
28                                            (#:column (two num)))))))
29
30 \relative c' {
31   \override Staff.TimeSignature #'stencil = #(compound-time "2" "3" "8")
32   \time 5/8
33   \set Staff.beatStructure = #'(2 3)
34   c8 d e fis gis
35   c8 fis, gis e d
36   c8 d e4 gis8
37 }