]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/positioning-multi-measure-rests.ly
Issue 3687 (part 3) Update snippets to use \compressMMRests
[lilypond.git] / Documentation / snippets / positioning-multi-measure-rests.ly
index 53ac138d5eff074804ca76b05657e63a104543f9..b49d162f12e26e5753820a2e359bc7d06ee204d9 100644 (file)
@@ -1,11 +1,10 @@
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.15.14
-\version "2.15.14"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.19.20"
 
 \header {
   lsrtags = "rhythms, tweaks-and-overrides"
@@ -22,22 +21,21 @@ follows:
   doctitle = "Positioning multi-measure rests"
 } % begin verbatim
 
-
 \relative c'' {
   % Multi-measure rests by default are set under the fourth line
   R1
   % They can be moved using an override
-  \override MultiMeasureRest #'staff-position = #-2
+  \override MultiMeasureRest.staff-position = #-2
   R1
-  \override MultiMeasureRest #'staff-position = #0
+  \override MultiMeasureRest.staff-position = #0
   R1
-  \override MultiMeasureRest #'staff-position = #2
+  \override MultiMeasureRest.staff-position = #2
   R1
-  \override MultiMeasureRest #'staff-position = #3
+  \override MultiMeasureRest.staff-position = #3
   R1
-  \override MultiMeasureRest #'staff-position = #6
+  \override MultiMeasureRest.staff-position = #6
   R1
-  \revert MultiMeasureRest #'staff-position
+  \revert MultiMeasureRest.staff-position
   \break
 
   % In two Voices, odd-numbered voices are under the top line
@@ -50,18 +48,18 @@ follows:
   % Separating multi-measure rests in more than two voices
   % requires an override
   << { R1 } \\ { R1 } \\
-     \once \override MultiMeasureRest #'staff-position = #0
+     \once \override MultiMeasureRest.staff-position = #0
      { R1 }
   >>
 
   % Using compressed bars in multiple voices requires another override
   % in all voices to avoid multiple instances being printed
-  \compressFullBarRests
+  \compressMMRests
   <<
-   \revert MultiMeasureRest #'staff-position
+   \revert MultiMeasureRest.direction
     { R1*3 }
     \\
-   \revert MultiMeasureRest #'staff-position
+   \revert MultiMeasureRest.direction
     { R1*3 }
   >>
 }