From: Graham Percival Date: Sat, 22 Mar 2008 05:48:13 +0000 (-0700) Subject: Two new snippets. X-Git-Tag: release/2.11.43-1~20 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=923d8015887e97ca58ed4f7ff844f21511392532;p=lilypond.git Two new snippets. --- diff --git a/input/new/changing-form-of-multi--measure-rests.ly b/input/new/changing-form-of-multi--measure-rests.ly new file mode 100644 index 0000000000..37e904e70d --- /dev/null +++ b/input/new/changing-form-of-multi--measure-rests.ly @@ -0,0 +1,20 @@ +\version "2.11.42" +\layout { ragged-right= ##t } +\header { + doctitle = "Changing form of multi-measure rests" + lsrtags = "rhythms,tweaks-and-overrides" + texidoc = " +If there are 10 or fewer measures of rest, LilyPond prints +a series of longa and breve rests (called in German +Kirchenpausen - church rests) within the staff and +prints a simple line otherwise. This default number of 10 +may be changed by an override: +"} + +@lilypond[quote,ragged-right,fragment,verbatim] +\compressFullBarRests +R1*2 | R1*5 | R1*9 +\override MultiMeasureRest #'expand-limit = 3 +R1*2 | R1*5 | R1*9 +@end lilypond + diff --git a/input/new/positioning-multi--measure-rests.ly b/input/new/positioning-multi--measure-rests.ly new file mode 100644 index 0000000000..7d008f6780 --- /dev/null +++ b/input/new/positioning-multi--measure-rests.ly @@ -0,0 +1,41 @@ +\version "2.11.42" +\layout { ragged-right= ##t } +\header { + doctitle = "Positioning multi-measure rests" + lsrtags = "rhythms,tweaks-and-overrides" + texidoc = " +Unlike ordinary rests, there is no predefined command +to change the vertical position on the staff of a multi-measure +rest symbol of either form by attaching it to a note. However, +in polyphonic music multi-measure rests in odd-numbered and +even-numbered voices are vertically separated. The positioning +of multi-measure rests can be controlled as follows: + "} + +@lilypond[quote,ragged-right,fragment,verbatim,relative=2] +% Multi-measure rests by default are set under the 2nd line +R1 +% They can be moved with an override +\override MultiMeasureRest #'staff-position = #-2 +R1 +% A value of 0 is the default position; +% the following trick moves the rest to the center line +\override MultiMeasureRest #'staff-position = #-0.01 +R1 +% Multimeasure rests in odd-numbered voices are under the top line +<< {R1} \\ {a1} >> +% Multi-measure rests in even-numbered voices are under the bottom line +<< {c1} \\ {R1} >> +% They remain separated even in empty bars +<< {R1} \\ {R1} >> +% This brings them together even though there are two voices +\compressFullBarRests +<< + \revert MultiMeasureRest #'staff-position + {R1*3} +\\ + \revert MultiMeasureRest #'staff-position + {R1*3} +>> +@end lilypond +