]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/changing-time-signatures-inside-a-polymetric-section-using-scaledurations.ly
Merge branch 'master' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond
[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.  In this case, @code{measureLength}
10 should be set manually, using the @code{ly:make-moment} callback.  The
11 second argument must be the same as the second argument of
12 @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 >>