]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/printing-music-with-different-time-signatures.ly
Merge branch 'master' of ssh+git://hanwen@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / input / lsr / printing-music-with-different-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.11.38"
4
5 \header {
6   lsrtags = "rhythms, percussion"
7  texidoc = "
8 In the following snippet, two parts have a completely different time
9 signature, and yet keep synchronized.
10
11 This can be achieved with the \\compressMusic command, as demonstrated
12 here.
13
14 The barlines can't be printed at the Score level anymore, so you have
15 to remove the Barline_engraver and put it in the Staff context.
16 " }
17 % begin verbatim
18 % Thanks to Adam James Wilson for this snippet
19
20 \paper {
21        indent = #0
22        ragged-right = ##t
23 }
24
25 global = { \time 3/4 { s2. * 3 } \bar "" \break { s2. * 3 }}
26
27 \layout {
28        \context { \Score
29                \remove "Timing_translator"
30                \remove "Time_signature_engraver"
31                \remove "Default_bar_line_engraver"
32                \override SpacingSpanner #'uniform-stretching = ##t
33                \override SpacingSpanner #'strict-note-spacing = ##t
34                proportionalNotationDuration = #(ly:make-moment 1 64)
35        }
36        \context { \Staff
37                \consists "Timing_translator"
38                \consists "Default_bar_line_engraver"
39                \consists "Time_signature_engraver"
40        }
41        \context { \Voice
42                \remove Forbid_line_break_engraver
43                tupletFullLength = ##t
44        }
45 }
46
47
48 Bassklarinette =        \new Staff <<
49                \global
50                {
51                \bar "|"
52                \clef treble
53                \time 3/8
54                d''4.
55
56                \bar "|"
57                \time 3/4
58                r8 des''2( c''8)
59
60                \bar "|"
61                \time 7/8
62                r4. ees''2 ~
63
64                \bar "|"
65                \time 2/4
66                \tupletUp
67                \times 2/3 {ees''4 r4 d''4 ~}
68
69                \bar "|"
70                \time 3/8
71                \tupletUp
72                \times 3/4 {d''4 r4}
73
74                \bar "|"
75                \time 2/4
76                e''2
77
78                \bar "|"
79                \time 3/8
80        es''4.
81 \bar "|"
82 \time 3/4
83 r8 d''2 r8
84 \bar "|"
85                }
86        >>
87 Perkussion =    \new StaffGroup <<
88                \new Staff <<
89                        \global
90                        {
91                        \bar "|"
92                        \clef percussion
93                        \time 3/4
94                        r4 c'2 ~
95
96                        \bar "|"
97                        c'2.
98
99                        \bar "|"
100                        R2.
101
102                        \bar "|"
103                        r2 g'4 ~
104
105                        \bar "|"
106                        g'2. ~
107
108                        \bar "|"
109                        g'2.
110                        }
111                >>
112                \new Staff <<
113                        \global
114                        {
115                        \bar "|"
116                        \clef percussion
117                        \time 3/4
118                        R2.
119
120                        \bar "|"
121                        g'2. ~
122
123                        \bar "|"
124                        g'2.
125
126                        \bar "|"
127                        r4 g'2 ~
128
129                        \bar "|"
130                        g'2 r4
131
132                        \bar "|"
133                        g'2.
134                        }
135                >>
136        >>
137
138 \score { <<  \Bassklarinette \Perkussion >>
139
140 }
141