]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/changing-time-signatures-inside-a-polymetric-section-using--scaledurations.ly
Run scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / Documentation / snippets / new / changing-time-signatures-inside-a-polymetric-section-using--scaledurations.ly
1 \version "2.16.0"
2
3 \header {
4   lsrtags = "workaround, contexts-and-engravers, contemporary-notation, rhythms"
5
6   doctitle = "Changing time signatures inside a polymetric section using \\scaleDurations"
7 }
8
9
10 \layout {
11   \context {
12     \Score
13     \remove "Timing_translator"
14     \remove "Default_bar_line_engraver"
15   }
16   \context {
17     \Staff
18     \consists "Timing_translator"
19     \consists "Default_bar_line_engraver"
20   }
21 }
22
23 <<
24   \new Staff {
25     \scaleDurations 8/5 {
26       \time 6/8
27       \set Timing.measureLength = #(ly:make-moment 6 5)
28       b8 b b b b b
29       \time 2/4
30       \set Timing.measureLength = #(ly:make-moment 4 5)
31       b4 b
32     }
33   }
34   \new Staff {
35     \clef bass
36     \time 2/4
37     c2 d e f
38   }
39 >>