]> 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, yet remain synchronized. The barlines can't be printed at
10 the @code{Score} level anymore, so you have to remove the
11 @code{Barline_engraver} and put it in the @code{Staff} context. 
12 " }
13 % begin verbatim
14 % Thanks to Adam James Wilson for this snippet
15
16 \paper {
17   indent = #0
18   ragged-right = ##t
19 }
20
21 global = { \time 3/4 { s2.*3 } \bar "" \break { s2.*3 } }
22
23 \layout {
24   \context {
25     \Score
26     \remove "Timing_translator"
27     \remove "Time_signature_engraver"
28     \remove "Default_bar_line_engraver"
29     \override SpacingSpanner #'uniform-stretching = ##t
30     \override SpacingSpanner #'strict-note-spacing = ##t
31     proportionalNotationDuration = #(ly:make-moment 1 64)
32   }
33   \context {
34     \Staff
35     \consists "Timing_translator"
36     \consists "Default_bar_line_engraver"
37     \consists "Time_signature_engraver"
38   }
39   \context {
40     \Voice
41     \remove "Forbid_line_break_engraver"
42     tupletFullLength = ##t
43   }
44 }
45
46 Bassklarinette = \new Staff <<
47   \global {
48     \bar "|"
49     \clef treble
50     \time 3/8
51     d''4.
52     
53     \bar "|"
54     \time 3/4
55     r8 des''2( c''8)
56     
57     \bar "|"
58     \time 7/8
59     r4. ees''2 ~
60     
61     \bar "|"
62     \time 2/4
63     \tupletUp
64     \times 2/3 { ees''4 r4 d''4 ~ }
65     
66     \bar "|"
67     \time 3/8
68     \tupletUp
69     \times 3/4 { d''4 r4 }
70     
71     \bar "|"
72     \time 2/4
73     e''2
74     
75     \bar "|"
76     \time 3/8
77     es''4.
78     
79     \bar "|"
80     \time 3/4
81     r8 d''2 r8
82     \bar "|"
83   }
84 >>
85
86 Perkussion = \new StaffGroup <<
87   \new Staff <<
88     \global {
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       \bar "|"
113       \clef percussion
114       \time 3/4
115       R2.
116       
117       \bar "|"
118       g'2. ~
119       
120       \bar "|"
121       g'2.
122       
123       \bar "|"
124       r4 g'2 ~
125       
126       \bar "|"
127       g'2 r4
128       
129       \bar "|"
130       g'2.
131     }
132   >>
133 >>
134
135 \score {
136   <<  \Bassklarinette \Perkussion >>
137 }