]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/changing-time-signatures-inside-a-polymetric-section-using--compressmusic.ly
Merge commit 'ce4b499'
[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 measureLength variable, together with measurePosition, determines
9 when a barline is needed. However, when using \\compressMusic, the
10 scaling of durations makes it difficult to change time signatures
11 without making a mess of it. 
12
13 Therefore, measureLength has to be set manually, using the
14 ly:make-moment callback. The second argument has to be the same as the
15 second argument of \\compressMusic.
16 " }
17 % begin verbatim
18 \layout {
19  \context { \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