1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
4 \layout { ragged-right= ##t }
6 doctitle = "Positioning multi-measure rests"
7 lsrtags = "rhythms,tweaks-and-overrides"
9 Unlike ordinary rests, there is no predefined command
10 to change the vertical position on the staff of a multi-measure
11 rest symbol of either form by attaching it to a note. However,
12 in polyphonic music multi-measure rests in odd-numbered and
13 even-numbered voices are vertically separated. The positioning
14 of multi-measure rests can be controlled as follows:
18 % Multi-measure rests by default are set under the 2nd line
20 % They can be moved with an override
21 \override MultiMeasureRest #'staff-position = #-2
23 % A value of 0 is the default position;
24 % the following trick moves the rest to the center line
25 \override MultiMeasureRest #'staff-position = #-0.01
27 % Multimeasure rests in odd-numbered voices are under the top line
29 % Multi-measure rests in even-numbered voices are under the bottom line
31 % They remain separated even in empty bars
33 % This brings them together even though there are two voices
36 \revert MultiMeasureRest #'staff-position
39 \revert MultiMeasureRest #'staff-position