]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/positioning-multi--measure-rests.ly
Merge branch 'dev/texi2html' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond into...
[lilypond.git] / input / lsr / positioning-multi--measure-rests.ly
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 \version "2.11.42"
4 \layout { ragged-right = ##t }
5 \header {
6   lsrtags = "rhythms,tweaks-and-overrides"
7   texidoc = "
8 Unlike ordinary rests, there is no predefined command
9 to change the vertical position on the staff of a multi-measure
10 rest symbol of either form by attaching it to a note.  However,
11 in polyphonic music multi-measure rests in odd-numbered and
12 even-numbered voices are vertically separated.  The positioning
13 of multi-measure rests can be controlled as follows:
14  "
15   doctitle = "Positioning multi-measure rests"
16 } % begin verbatim
17
18 \relative c'' {
19   % Multi-measure rests by default are set under the second line
20   R1
21   % They can be moved with an override
22   \override MultiMeasureRest #'staff-position = #-2
23   R1
24   % A value of 0 is the default position;
25   % the following trick moves the rest to the center line
26   \override MultiMeasureRest #'staff-position = #-0.01
27   R1
28   % Multi-measure rests in odd-numbered voices are under the top line
29   << { R1 } \\ { a1 } >>
30   % Multi-measure rests in even-numbered voices are under the bottom line
31   << { c1 } \\ { R1 } >>
32   % They remain separated even in empty measures
33   << { R1 } \\ { R1 } >>
34   % This brings them together even though there are two voices
35   \compressFullBarRests
36   <<
37     \revert MultiMeasureRest #'staff-position
38     { R1*3 }
39     \\
40     \revert MultiMeasureRest #'staff-position
41     { R1*3 }
42   >>
43 }