]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/forcing-measure-width-to-adapt-to-metronomemarks-width.ly
Issue 3687 (part 3) Update snippets to use \compressMMRests
[lilypond.git] / Documentation / snippets / new / forcing-measure-width-to-adapt-to-metronomemarks-width.ly
1
2 \version "2.19.20"
3
4 \header {
5   lsrtags = "staff-notation, workaround"
6
7   texidoc = "
8 By default, metronome marks do not influence horizontal spacing.   This
9 can be solved through a simple override, as shown in the second half of
10 the example.
11
12 "
13   doctitle = "Forcing measure width to adapt to MetronomeMark's width"
14 }
15
16 example = {
17   \tempo "Allegro"
18   R1*6
19   \tempo "Rall."
20   R1*2
21   \tempo "A tempo"
22   R1*8
23 }
24
25 {
26   \compressMMRests {
27     \example
28     R1
29     R1
30     \override Score.MetronomeMark.extra-spacing-width = #'(-3 . 0)
31     \example
32   }
33 }