]> git.donarmstrong.com Git - lilypond.git/commitdiff
LSR: Updated snippet for MMR Positions (1931)
authorJames Lowe <james.lowe@datacore.com>
Sat, 1 Oct 2011 20:47:34 +0000 (21:47 +0100)
committerJames Lowe <james.lowe@datacore.com>
Fri, 14 Oct 2011 22:39:29 +0000 (23:39 +0100)
Removed statement that default MMR position was #0 (it is actually #2)

Added some examples of the overrides and clarified some comments
including adding new example of more than two voices

Documentation/snippets/changing-fret-orientations.ly
Documentation/snippets/customizing-fretboard-fret-diagrams.ly
Documentation/snippets/new/positioning-multi-measure-rests.ly [new file with mode: 0644]
Documentation/snippets/positioning-multi-measure-rests.ly

index c71c45a4fddfa7c65c6bed1e3f2f472f414eca92..a78787d1a665d43e655a02653289f544239bf298 100644 (file)
@@ -23,6 +23,7 @@ Ils s'aligneront par défaut sur la corde du haut ou le sommet du fret.
 
 
 
+
 %% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb
 
   texidoces = "
index 6b90aae8b97145bbc1ee76a06ac4fabf8ccfb655..f818c943ec5f72c8897785f14bd33609d055c013 100644 (file)
@@ -24,6 +24,7 @@ l'instancier de manière explicite pour adapter ses propriétés.
 
 
 
+
 %% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb
   texidoces = "
 Se pueden establecer las propiedades de los diagramas de
diff --git a/Documentation/snippets/new/positioning-multi-measure-rests.ly b/Documentation/snippets/new/positioning-multi-measure-rests.ly
new file mode 100644 (file)
index 0000000..ca75246
--- /dev/null
@@ -0,0 +1,59 @@
+\version "2.15.14"
+
+\header {
+  lsrtags = "rhythms, tweaks-and-overrides"
+
+  texidoc = "
+Unlike ordinary rests, there is no predefined command to change the
+staff position 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:
+
+"
+  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
+  R1
+  \override MultiMeasureRest #'staff-position = #0
+  R1
+  \override MultiMeasureRest #'staff-position = #2
+  R1
+  \override MultiMeasureRest #'staff-position = #3
+  R1
+  \override MultiMeasureRest #'staff-position = #6
+  R1
+  \revert MultiMeasureRest #'staff-position
+  \break
+
+  % In two Voices, odd-numbered voices are under the top line
+  << { R1 } \\ { a1 } >>
+  % Even-numbered voices are under the bottom line
+  << { a1 } \\ { R1 } >>
+  % Multi-measure rests in both voices remain separate
+  << { R1 } \\ { R1 } >>
+
+  % Separating multi-measure rests in more than two voices
+  % requires an override
+  << { R1 } \\ { R1 } \\
+     \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
+  <<
+   \revert MultiMeasureRest #'staff-position
+    { R1*3 }
+    \\
+   \revert MultiMeasureRest #'staff-position
+    { R1*3 }
+  >>
+}
index c5e38e8db190c9b48772ee3ac7ef3ed5073a3c49..2a422666f94cf2ca05eef4574d2eddc8a8cf8420 100644 (file)
@@ -1,14 +1,13 @@
-%% DO NOT EDIT this file manually; it is automatically
-%% generated from LSR http://lsr.dsi.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.14.0"
+% 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"
 
 \header {
-  lsrtags = "rhythms, tweaks-and-overrides"
-
 %% Translation of GIT committish: 2d548a99cb9dba80f2ff035582009477cd37eceb
  doctitlees = "Posicionar los silencios multicompás"
  texidoces = "
@@ -47,6 +46,8 @@ positionnement des silences multi-mesures peut se contrôler ainsi :
 "
   doctitlefr = "Positionnement des silences multi-mesures"
 
+  lsrtags = "rhythms, tweaks-and-overrides"
+
   texidoc = "
 Unlike ordinary rests, there is no predefined command to change the
 staff position of a multi-measure rest symbol of either form by
@@ -60,29 +61,45 @@ follows:
 } % begin verbatim
 
 \relative c'' {
-  % MMR - Multi-Measure Rest
-  % MMRs by default are set under the fourth line
+  % Multi-measure rests by default are set under the fourth line
   R1
-  % They can be moved with an override
+  % They can be moved using 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
+  \override MultiMeasureRest #'staff-position = #0
+  R1
+  \override MultiMeasureRest #'staff-position = #2
+  R1
+  \override MultiMeasureRest #'staff-position = #3
   R1
-  % MMRs in odd-numbered voices are under the top line
+  \override MultiMeasureRest #'staff-position = #6
+  R1
+  \revert MultiMeasureRest #'staff-position
+  \break
+
+  % In two Voices, odd-numbered voices are under the top line
   << { R1 } \\ { a1 } >>
-  % MMRs in even-numbered voices are under the bottom line
-  << { c1 } \\ { R1 } >>
-  % They remain separated even in empty measures
+  % Even-numbered voices are under the bottom line
+  << { a1 } \\ { R1 } >>
+  % Multi-measure rests in both voices remain separate
   << { R1 } \\ { R1 } >>
-  % This brings them together even though there are two voices
+
+  % Separating multi-measure rests in more than two voices
+  % requires an override
+  << { R1 } \\ { R1 } \\
+     \once \override MultiMeasureRest #'staff-position = #0
+     { R1 } % begin verbatim
+
+  >>
+
+  % Using compressed bars in multiple voices requires another override
+  % in all voices to avoid multiple instances being printed
   \compressFullBarRests
   <<
-    \revert MultiMeasureRest #'staff-position
+   \revert MultiMeasureRest #'staff-position
     { R1*3 }
     \\
-    \revert MultiMeasureRest #'staff-position
+   \revert MultiMeasureRest #'staff-position
     { R1*3 }
   >>
 }