]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/printing-music-with-different-time-signatures.ly
2bd69e4fea5570e1f9ec7ed389aaacea783b2db9
[lilypond.git] / Documentation / snippets / printing-music-with-different-time-signatures.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.14.2"
8
9 \header {
10   lsrtags = "contemporary-notation, rhythms, real-music, percussion, really-cool"
11
12 %% Translation of GIT committish: 28097cf54698db364afeb75658e4c8e0e0ccd716
13   texidocfr = "
14 Bien qu'ayant des métriques bien différentes, les deux parties
15 ci-dessous présentées restent synchrones.  Les barres de mesure ne
16 peuvent plus être gérées au niveau du contexte @code{Score} ; les
17 @code{Default_barline_engraver} et @code{Timing_translator} doivent être
18 déplacés du contexte @code{Score} au contexte @code{Staff} afin de
19 permettre des barres de mesure individualisées.
20
21 Le @code{Bar_number_engraver} devra lui aussi être déplacé, puisqu'il
22 dépend de propriétés attachées au @code{Timing_translator}, afin de
23 numéroter les mesures.  L'utilisation d'un bloc @code{\\with} dans la
24 portée concernée permettra un affichage des numéros de mesure.
25
26 "
27   doctitlefr = "Impression de musique aux métriques différentes"
28
29   texidoc = "
30 In the following snippet, two parts have a completely different time
31 signature, yet remain synchronized. The bar lines can no longer be
32 printed at the @code{Score} level; to allow independent bar lines in
33 each part, the @code{Default_barline_engraver} and
34 @code{Timing_translator} are moved from the @code{Score} context to the
35 @code{Staff} context.
36
37 If bar numbers are required, the @code{Bar_number_engraver} should also
38 be moved, since it relies on properties set by the
39 @code{Timing_translator}; a @code{\\with} block can be used to add bar
40 numbers to the relevant staff.
41
42
43
44 "
45   doctitle = "Printing music with different time signatures"
46 } % begin verbatim
47
48 \paper {
49   indent = #0
50   ragged-right = ##t
51 }
52
53 global = { \time 3/4 { s2.*3 } \bar "" \break { s2.*3 } }
54
55 \layout {
56   \context {
57     \Score
58     \remove "Timing_translator"
59     \remove "Default_bar_line_engraver"
60     \remove "Bar_number_engraver"
61     \override SpacingSpanner #'uniform-stretching = ##t
62     \override SpacingSpanner #'strict-note-spacing = ##t
63     proportionalNotationDuration = #(ly:make-moment 1 64)
64   }
65   \context {
66     \Staff
67     \consists "Timing_translator"
68     \consists "Default_bar_line_engraver"
69   }
70   \context {
71     \Voice
72     \remove "Forbid_line_break_engraver"
73     tupletFullLength = ##t
74   }
75 }
76
77 Bassklarinette = \new Staff \with {
78   \consists "Bar_number_engraver"
79   barNumberVisibility = #(every-nth-bar-number-visible 2)
80   \override BarNumber #'break-visibility = #end-of-line-invisible
81 } <<
82   \global {
83     \bar "|"
84     \clef treble
85     \time 3/8
86     d''4.
87
88     \bar "|"
89     \time 3/4
90     r8 des''2( c''8)
91
92     \bar "|"
93     \time 7/8
94     r4. ees''2 ~
95
96     \bar "|"
97     \time 2/4
98     \tupletUp
99     \times 2/3 { ees''4 r4 d''4 ~ }
100
101     \bar "|"
102     \time 3/8
103     \tupletUp
104     \times 3/4 { d''4 r4 }
105
106     \bar "|"
107     \time 2/4
108     e''2
109
110     \bar "|"
111     \time 3/8
112     es''4.
113
114     \bar "|"
115     \time 3/4
116     r8 d''2 r8
117     \bar "|"
118   }
119 >>
120
121 Perkussion = \new StaffGroup <<
122   \new Staff <<
123     \global {
124       \bar "|"
125       \clef percussion
126       \time 3/4
127       r4 c'2 ~
128
129       \bar "|"
130       c'2.
131
132       \bar "|"
133       R2.
134
135       \bar "|"
136       r2 g'4 ~
137
138       \bar "|"
139       g'2. ~
140
141       \bar "|"
142       g'2.
143     }
144   >>
145   \new Staff <<
146     \global {
147       \bar "|"
148       \clef percussion
149       \time 3/4
150       R2.
151
152       \bar "|"
153       g'2. ~
154
155       \bar "|"
156       g'2.
157
158       \bar "|"
159       r4 g'2 ~
160
161       \bar "|"
162       g'2 r4
163
164       \bar "|"
165       g'2.
166     }
167   >>
168 >>
169
170 \score {
171   <<
172     \Bassklarinette
173     \Perkussion
174   >>
175 }
176