lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

doc: changing example for overriding positions (issue4607043)


From: lemniskata . bernoullego
Subject: doc: changing example for overriding positions (issue4607043)
Date: Sun, 12 Jun 2011 10:48:42 +0000

Reviewers: Graham Percival,

Description:
doc: changing example for overriding positions

example in LM 4.5.2 (fixing beam collision)
is outdated because beam collision has been
implemented, so there is nothing to fix.
Therefore I change the type of collision
to beam-tie collision.

Please review this at http://codereview.appspot.com/4607043/

Affected files:
  M Documentation/learning/tweaks.itely


Index: Documentation/learning/tweaks.itely
diff --git a/Documentation/learning/tweaks.itely b/Documentation/learning/tweaks.itely index 97b2cadfd9744d9f432379e93338f9303349185e..d3c2ab156eb0d6baa5a0eaea39d43ef64f30fdfe 100644
--- a/Documentation/learning/tweaks.itely
+++ b/Documentation/learning/tweaks.itely
@@ -2793,42 +2793,53 @@ r4
 \acciaccatura e8\( d8 c~ c d c d\)
 @end lilypond

-Here's a further example taken from the opening of the left-hand
-staff of Chopin's Prelude Op 28 No. 2.  We see that the beam
-collides with the upper notes:
+Here's a further example.  We see that the beams
+collide with the ties:

 @lilypond[quote,verbatim,fragment,ragged-right]
 {
-  \clef "bass"
-  << { b,8 ais, b, g, } \\ { e,8 g e, g } >>
-  << { b,8 ais, b, g, } \\ { e,8 g e, g } >>
+  \time 4/2
+  <<
+    { c'1 ~ c'2. e'8 f'}
+    \\
+    { e''8 e'' e'' e''  e'' e'' e'' e'' | f''2 g''}
+  >>
+  <<
+    { c'1 ~ c'2. e'8 f'}
+    \\
+    { e''8 e'' e'' e''  e'' e'' e'' e'' | f''2 g''}
+  >>
 }
 @end lilypond

 @noindent
 This can be resolved by manually moving both ends of the beam
-up from their position at 2 staff-spaces above the center line to,
-say, 3:
+up from their position at 1.81 staff-spaces below the center line to,
+say, 1:

 @cindex Beam, example of overriding
 @cindex positions property, example

 @lilypond[quote,verbatim,fragment,ragged-right]
 {
-  \clef "bass"
+  \time 4/2
   <<
-    \override Beam #'positions = #'(3 . 3)
-    { b,8 ais, b, g, }
-  \\
-    { e,8 g e, g }
+    { c'1 ~ c'2. e'8 f'}
+    \\
+    \override Beam #'positions = #'(-1 . -1)
+    { e''8 e'' e'' e''  e'' e'' e'' e'' | f''2 g''}
+  >>
+  <<
+    { c'1 ~ c'2. e'8 f'}
+    \\
+    { e''8 e'' e'' e''  e'' e'' e'' e'' | f''2 g''}
   >>
-  << { b,8 ais, b, g, } \\ { e,8 g e, g } >>
 }
 @end lilypond

 @noindent
 Note that the override continues to apply in the first voice of
-the second block of quavers, but not to any of the beams in the
+the second measure of quavers, but not to any of the beams in the
 second voice.

 @subheading force-hshift property





reply via email to

[Prev in Thread] Current Thread [Next in Thread]