]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/forcing-measure-width-to-adapt-to-metronomemarks-width.ly
Merge branch 'master' into lilypond/translation
[lilypond.git] / Documentation / snippets / forcing-measure-width-to-adapt-to-metronomemarks-width.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.29"
5
6 \header {
7   lsrtags = "staff-notation"
8
9   texidoc = "
10 By default, metronome marks do not influence horizontal spacing.  This
11 has one downside: when using compressed rests, some metronome marks may
12 be too close and therefore are printed vertically stacked, as
13 demonstrated in the first part of this example.  This can be solved
14 through a simple override, as shown in the second half of the example.
15
16 "
17   doctitle = "Forcing measure width to adapt to MetronomeMark's width"
18 } % begin verbatim
19
20 example = {
21   \tempo "Allegro"
22   R1*6
23   \tempo "Rall."
24   R1*2
25   \tempo "A tempo"
26   R1*8
27 }
28
29 {
30   \compressFullBarRests
31
32   \example
33
34   R1
35   R1
36
37   \override Score.MetronomeMark #'extra-spacing-width = #'(0 . 0)
38   \example
39 }
40