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