]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/multi-measure-rest-markup.ly
Imported Upstream version 2.19.45
[lilypond.git] / Documentation / snippets / new / multi-measure-rest-markup.ly
1
2 \version "2.19.20"
3
4 \header {
5   lsrtags = "rhythms, text"
6
7   texidoc = "
8 Markups attached to a multi-measure rest will be centered above or
9 below it.  Long markups attached to multi-measure rests do not cause
10 the measure to expand.  To expand a multi-measure rest to fit the
11 markup, use an empty chord with an attached markup before the
12 multi-measure rest.
13
14 Text attached to a spacer rest in this way is left-aligned to the
15 position where the note would be placed in the measure, but if the
16 measure length is determined by the length of the text, the text will
17 appear to be centered.
18
19 "
20   doctitle = "Multi-measure rest markup"
21 }
22
23 \relative c' {
24   \compressMMRests {
25     \textLengthOn
26     <>^\markup { [MAJOR GENERAL] }
27     R1*19
28     <>_\markup { \italic { Cue: ... it is yours } }
29     <>^\markup { A }
30     R1*30^\markup { [MABEL] }
31     \textLengthOff
32     c4^\markup { CHORUS } d f c
33   }
34 }