]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/forcing-measure-width-to-adapt-to-metronomemarks-width.ly
Docs: run convert-ly for 2.14.0.
[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.0"
8
9 \header {
10   lsrtags = "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 example = {
24   \tempo "Allegro"
25   R1*6
26   \tempo "Rall."
27   R1*2
28   \tempo "A tempo"
29   R1*8
30 }
31
32 {
33   \compressFullBarRests
34
35   \example
36
37   R1
38   R1
39
40   \override Score.MetronomeMark #'extra-spacing-width = #'(0 . 0)
41   \example
42 }
43