]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/heavily-customized-polymetric-time-signatures.ly
Docs: run convert-ly for 2.14.0.
[lilypond.git] / Documentation / snippets / heavily-customized-polymetric-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.14.0"
8
9 \header {
10   lsrtags = "rhythms, percussion"
11
12   texidoc = "
13 Though the polymetric time signature shown was not the most essential
14 item here, it has been included to show the beat of this piece (which
15 is the template of a real Balkan song!).
16
17 "
18   doctitle = "Heavily customized polymetric time signatures"
19 } % begin verbatim
20
21 #(define plus (markup #:vcenter "+"))
22 #(define ((custom-time-signature one two three four five six
23                                  seven eight nine ten eleven num) grob)
24    (grob-interpret-markup grob
25                           (markup #:override '(baseline-skip . 0) #:number
26                                   (#:line ((#:column (one num)) plus
27                                            (#:column (two num)) plus
28                                            (#:column (three num)) plus
29                                            (#:column (four num)) plus
30                                            (#:column (five num)) plus
31                                            (#:column (six num)) plus
32                                            (#:column (seven num)) plus
33                                            (#:column (eight num)) plus
34                                            (#:column (nine num)) plus
35                                            (#:column (ten num)) plus
36                                            (#:column (eleven num)))))))
37 melody = \relative c'' {
38   \set Staff.instrumentName = #"Bb Sop."
39   \key g \major
40   #(set-time-signature 25 8 '(3 2 2 3 2 2 2 2 3 2 2))
41   \override Staff.TimeSignature #'stencil =
42     #(custom-time-signature "3" "2" "2" "3" "2" "2"
43       "2" "2" "3" "2" "2" "8")
44   c8 c c d4 c8 c b c b a4 g fis8 e d c b' c d e4-^ fis8 g \break
45   c,4. d4 c4 d4. c4 d c2 d4. e4-^ d4
46   c4. d4 c4 d4. c4 d c2 d4. e4-^ d4 \break
47   c4. d4 c4 d4. c4 d c2 d4. e4-^ d4
48   c4. d4 c4 d4. c4 d c2 d4. e4-^ d4 \break
49 }
50
51 drum = \new DrumStaff \drummode {
52   \bar "|:" bd4.^\markup { Drums } sn4 bd \bar ":" sn4.
53   bd4 sn \bar ":" bd sn bd4. sn4 bd \bar ":|"
54 }
55
56 {
57   \melody
58   \drum
59 }
60