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