1%% DO NOT EDIT this file manually; it is automatically
2%% generated from LSR http://lsr.di.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.23.2"
8
9\header {
10  lsrtags = "contemporary-notation, percussion, real-music, really-cool, rhythms"
11
12  texidoc = "
13In the following snippet, two parts have a completely different time
14signature, yet remain synchronized.
15
16The bar lines can no longer be printed at the @code{Score} level; to
17allow independent bar lines in each part, the
18@code{Default_barline_engraver} and @code{Timing_translator} are moved
19from the @code{Score} context to the @code{Staff} context.
20
21If bar numbers are required, the @code{Bar_number_engraver} should also
22be moved, since it relies on properties set by the
23@code{Timing_translator}; a @code{\\with} block can be used to add bar
24numbers to the relevant staff.
25
26"
27  doctitle = "Printing music with different time signatures"
28} % begin verbatim
29
30
31\paper {
32  indent = #0
33  ragged-right = ##t
34}
35
36global = { \time 3/4 { s2.*3 } \bar "" \break { s2.*3 } }
37
38\layout {
39  \context {
40    \Score
41    \remove "Timing_translator"
42    \remove "Default_bar_line_engraver"
43    \remove "Bar_number_engraver"
44    \override SpacingSpanner.uniform-stretching = ##t
45    \override SpacingSpanner.strict-note-spacing = ##t
46    proportionalNotationDuration = #(ly:make-moment 1/64)
47  }
48  \context {
49    \Staff
50    \consists "Timing_translator"
51    \consists "Default_bar_line_engraver"
52  }
53  \context {
54    \Voice
55    \remove "Forbid_line_break_engraver"
56    tupletFullLength = ##t
57  }
58}
59
60Bassklarinette = \new Staff \with {
61  \consists "Bar_number_engraver"
62  barNumberVisibility = #(every-nth-bar-number-visible 2)
63  \override BarNumber.break-visibility = #end-of-line-invisible
64} <<
65  \global {
66    \bar "|"
67    \clef treble
68    \time 3/8
69    d''4.
70
71    \bar "|"
72    \time 3/4
73    r8 des''2( c''8)
74
75    \bar "|"
76    \time 7/8
77    r4. ees''2 ~
78
79    \bar "|"
80    \time 2/4
81    \tupletUp
82    \tuplet 3/2 { ees''4 r4 d''4 ~ }
83
84    \bar "|"
85    \time 3/8
86    \tupletUp
87    \tuplet 4/3 { d''4 r4 }
88
89    \bar "|"
90    \time 2/4
91    e''2
92
93    \bar "|"
94    \time 3/8
95    es''4.
96
97    \bar "|"
98    \time 3/4
99    r8 d''2 r8
100    \bar "|"
101  }
102>>
103
104Perkussion = \new StaffGroup <<
105  \new Staff <<
106    \global {
107      \bar "|"
108      \clef percussion
109      \time 3/4
110      r4 c'2 ~
111
112      \bar "|"
113      c'2.
114
115      \bar "|"
116      R2.
117
118      \bar "|"
119      r2 g'4 ~
120
121      \bar "|"
122      g'2. ~
123
124      \bar "|"
125      g'2.
126    }
127  >>
128  \new Staff <<
129    \global {
130      \bar "|"
131      \clef percussion
132      \time 3/4
133      R2.
134
135      \bar "|"
136      g'2. ~
137
138      \bar "|"
139      g'2.
140
141      \bar "|"
142      r4 g'2 ~
143
144      \bar "|"
145      g'2 r4
146
147      \bar "|"
148      g'2.
149    }
150  >>
151>>
152
153\score {
154  <<
155    \Bassklarinette
156    \Perkussion
157  >>
158}
159