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