]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/printing-music-with-different-time-signatures.ly
Docs: reorganize documentation directory structure
[lilypond.git] / Documentation / snippets / 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.13.1"
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{Default_barline_engraver} and
13 @code{Timing_translator} are moved from the @code{Score} context to the
14 @code{Staff} context. 
15
16 "
17   doctitle = "Printing music with different time signatures"
18 } % begin verbatim
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 {
29     \Score
30     \remove "Timing_translator"
31     \remove "Time_signature_engraver"
32     \remove "Default_bar_line_engraver"
33     \override SpacingSpanner #'uniform-stretching = ##t
34     \override SpacingSpanner #'strict-note-spacing = ##t
35     proportionalNotationDuration = #(ly:make-moment 1 64)
36   }
37   \context {
38     \Staff
39     \consists "Timing_translator"
40     \consists "Default_bar_line_engraver"
41     \consists "Time_signature_engraver"
42   }
43   \context {
44     \Voice
45     \remove "Forbid_line_break_engraver"
46     tupletFullLength = ##t
47   }
48 }
49
50 Bassklarinette = \new Staff <<
51   \global {
52     \bar "|"
53     \clef treble
54     \time 3/8
55     d''4.
56     
57     \bar "|"
58     \time 3/4
59     r8 des''2( c''8)
60     
61     \bar "|"
62     \time 7/8
63     r4. ees''2 ~
64     
65     \bar "|"
66     \time 2/4
67     \tupletUp
68     \times 2/3 { ees''4 r4 d''4 ~ }
69     
70     \bar "|"
71     \time 3/8
72     \tupletUp
73     \times 3/4 { d''4 r4 }
74     
75     \bar "|"
76     \time 2/4
77     e''2
78     
79     \bar "|"
80     \time 3/8
81     es''4.
82     
83     \bar "|"
84     \time 3/4
85     r8 d''2 r8
86     \bar "|"
87   }
88 >>
89
90 Perkussion = \new StaffGroup <<
91   \new Staff <<
92     \global {
93       \bar "|"
94       \clef percussion
95       \time 3/4
96       r4 c'2 ~
97       
98       \bar "|"
99       c'2.
100       
101       \bar "|"
102       R2.
103       
104       \bar "|"
105       r2 g'4 ~
106       
107       \bar "|"
108       g'2. ~
109       
110       \bar "|"
111       g'2.
112     }
113   >>
114   \new Staff <<
115     \global {
116       \bar "|"
117       \clef percussion
118       \time 3/4
119       R2.
120       
121       \bar "|"
122       g'2. ~
123       
124       \bar "|"
125       g'2.
126       
127       \bar "|"
128       r4 g'2 ~
129       
130       \bar "|"
131       g'2 r4
132       
133       \bar "|"
134       g'2.
135     }
136   >>
137 >>
138
139 \score {
140   <<
141     \Bassklarinette
142     \Perkussion
143   >>
144 }
145