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