]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/changing-time-signatures-inside-a-polymetric-section-using--compressmusic.ly
Merge branch 'master' of /home/lilycvs/git/lily/
[lilypond.git] / input / lsr / changing-time-signatures-inside-a-polymetric-section-using--compressmusic.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.38"
4
5 \header {
6   lsrtags = "rhythms, contexts-and-engravers"
7  texidoc = "
8 The @code{measureLength} property, together with
9 @code{measurePosition}, determines when a bar line is needed. However,
10 when using @code{\\compressMusic}, the scaling of durations makes it
11 difficult to change time signatures without making a mess of it.
12 Therefore, @code{measureLength} has to be set manually, using the
13 @code{ly:make-moment} callback. The second argument must be the same as
14 the second argument of @code{\\compressMusic}. 
15 " }
16 % begin verbatim
17 \layout {
18   \context {
19     \Score
20     \remove "Timing_translator"
21     \remove "Default_bar_line_engraver"
22   }
23   \context {
24     \Staff
25     \consists "Timing_translator"
26     \consists "Default_bar_line_engraver"
27   }
28 }
29
30 <<
31   \new Staff {
32     \compressMusic #'(8 . 5) {
33       \time 6/8
34       \set Timing.measureLength = #(ly:make-moment 3 5)
35       b8 b b b b b
36       \time 2/4
37       \set Timing.measureLength = #(ly:make-moment 2 5)
38       b4 b
39     }
40   }
41   \new Staff {
42     \clef bass
43     \time 2/4
44     c2 d e f
45   }
46 >>