]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/printing-music-with-different-time-signatures.ly
Merge master into nested-bookparts
[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.62"
4
5 \header {
6   lsrtags = "rhythms, percussion"
7
8   texidoc = "
9 In the following snippet, two parts have a completely different time
10 signature, yet remain synchronized. The bar lines can no longer be
11 printed at the @code{Score} level; to allow independent bar lines in
12 each part, the @code{Barline_engraver} is moved from the @code{Score}
13 context to the @code{Staff} context. 
14
15 "
16   doctitle = "Printing music with different time signatures"
17 } % begin verbatim
18
19 \paper {
20   indent = #0
21   ragged-right = ##t
22 }
23
24 global = { \time 3/4 { s2.*3 } \bar "" \break { s2.*3 } }
25
26 \layout {
27   \context {
28     \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 {
37     \Staff
38     \consists "Timing_translator"
39     \consists "Default_bar_line_engraver"
40     \consists "Time_signature_engraver"
41   }
42   \context {
43     \Voice
44     \remove "Forbid_line_break_engraver"
45     tupletFullLength = ##t
46   }
47 }
48
49 Bassklarinette = \new Staff <<
50   \global {
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     
82     \bar "|"
83     \time 3/4
84     r8 d''2 r8
85     \bar "|"
86   }
87 >>
88
89 Perkussion = \new StaffGroup <<
90   \new Staff <<
91     \global {
92       \bar "|"
93       \clef percussion
94       \time 3/4
95       r4 c'2 ~
96       
97       \bar "|"
98       c'2.
99       
100       \bar "|"
101       R2.
102       
103       \bar "|"
104       r2 g'4 ~
105       
106       \bar "|"
107       g'2. ~
108       
109       \bar "|"
110       g'2.
111     }
112   >>
113   \new Staff <<
114     \global {
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 {
139   <<  \Bassklarinette \Perkussion >>
140 }