summaryrefslogtreecommitdiff
path: root/Documentation/snippets/compound-time-signatures.ly
blob: befdb6134c85f1316a198abcf44a07f8e67aabf9 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
%% DO NOT EDIT this file manually; it is automatically
%% generated from LSR http://lsr.dsi.unimi.it
%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
%% and then run scripts/auxiliar/makelsr.py
%%
%% This file is in the public domain.
\version "2.17.11"

\header {
  lsrtags = "rhythms"

  texidoc = "
Odd 20th century time signatures (such as \\\"5/8\\\") can often be
played as compound time signatures (e.g. \\\"3/8 + 2/8\\\"), which
combine two or more inequal metrics. LilyPond can make such music quite
easy to read and play, by explicitly printing the compound time
signatures and adapting the automatic beaming behavior.

"
  doctitle = "Compound time signatures"
} % begin verbatim

#(define ((compound-time one two num) grob)
   (grob-interpret-markup grob
                          (markup #:override '(baseline-skip . 0) #:number
                                  (#:line ((#:column (one num))
                                           #:vcenter "+"
                                           (#:column (two num)))))))

\relative c' {
  \override Staff.TimeSignature.stencil = #(compound-time "2" "3" "8")
  \time 5/8
  \set Staff.beatStructure = #'(2 3)
  c8 d e fis gis
  c8 fis, gis e d
  c8 d e4 gis8
}