]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/changing-time-signatures-inside-a-polymetric-section-using-scaledurations.ly
Split WWW target in two stages WWW-1 and WWW-2
[lilypond.git] / input / lsr / changing-time-signatures-inside-a-polymetric-section-using-scaledurations.ly
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 \version "2.11.48"
4 \header {
5   lsrtags = "rhythms,contexts-and-engravers"
6   texidoc = "The @code{measureLength} property, together with
7 @code{measurePosition}, determines when a bar line is needed. However,
8 when using @code{\\scaleDurations}, the scaling of durations makes it
9 difficult to change time signatures without making a mess of it.
10 Therefore, @code{measureLength} has to be set manually, using the
11 @code{ly:make-moment} callback. The second argument must be the same as
12 the second argument of @code{\\scaleDurations}."
13   doctitle = "Changing time signatures inside a polymetric section using @code{\\scaleDurations}"
14 } % begin verbatim
15
16 \layout {
17   \context {
18     \Score
19     \remove "Timing_translator"
20     \remove "Default_bar_line_engraver"
21   }
22   \context {
23     \Staff
24     \consists "Timing_translator"
25     \consists "Default_bar_line_engraver"
26   }
27 }
28
29 <<
30   \new Staff {
31     \scaleDurations #'(8 . 5) {
32       \time 6/8
33       \set Timing.measureLength = #(ly:make-moment 3 5)
34       b8 b b b b b
35       \time 2/4
36       \set Timing.measureLength = #(ly:make-moment 2 5)
37       b4 b
38     }
39   }
40   \new Staff {
41     \clef bass
42     \time 2/4
43     c2 d e f
44   }
45 >>