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