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