From: Janek Warchol Date: Sun, 12 Jun 2011 10:41:44 +0000 (+0200) Subject: doc: changing example for overriding positions X-Git-Tag: release/2.14.2-1~43 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=16b80ea3ac33380e171f3cb0fbe6af0ea5ca9053;p=lilypond.git 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. --- diff --git a/Documentation/learning/tweaks.itely b/Documentation/learning/tweaks.itely index 97b2cadfd9..40f46cf675 100644 --- a/Documentation/learning/tweaks.itely +++ b/Documentation/learning/tweaks.itely @@ -2793,42 +2793,55 @@ 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 eighth notes, but not to any of the beams in the second voice. @subheading force-hshift property