X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fnew%2Fusing-the-whiteout-property.ly;h=07c2b7288b256626ff8e0e1f7a5456679e46be71;hb=4b994f8a;hp=46a5d57a511cd837d017331e09376d397cbe7161;hpb=74b336b3cab541e5f57c11c33ff52475eb655414;p=lilypond.git diff --git a/Documentation/snippets/new/using-the-whiteout-property.ly b/Documentation/snippets/new/using-the-whiteout-property.ly index 46a5d57a51..07c2b7288b 100644 --- a/Documentation/snippets/new/using-the-whiteout-property.ly +++ b/Documentation/snippets/new/using-the-whiteout-property.ly @@ -1,30 +1,33 @@ -\version "2.13.10" +\version "2.19.32" \header { - lsrtags = "expressive-marks, editorial-annotations" + lsrtags = "editorial-annotations, expressive-marks" + texidoc = " -Any graphical object can be printed over a white backgound to -mask parts of objects that lie beneath. This can be useful to -improve the appearance of collisions in complex situations when -repositioning objects is impractical. It is necessary to explicitly -set the @code{layer} property to control which objects are masked -by the white background. +Any graphical object can be printed over a white background to mask +parts of objects that lie beneath. This can be useful to improve the +appearance of collisions in complex situations when repositioning +objects is impractical. It is necessary to explicitly set the +@code{layer} property to control which objects are masked by the white +background. In this example the collision of the tie with the time signature is improved by masking out the part of the tie that crosses the time -signature by setting the @code{whiteout} property of @code{TimeSignature}. -To do this @code{TimeSignature} is moved to a layer above @code{Tie}, which -is left in the default layer of 1, and @code{StaffSymbol} is moved to a -layer above @code{TimeSignature} so it is not masked. +signature by setting the @code{whiteout} property of +@code{TimeSignature}. To do this @code{TimeSignature} is moved to a +layer above @code{Tie}, which is left in the default layer of 1, and +@code{StaffSymbol} is moved to a layer above @code{TimeSignature} so it +is not masked. + " doctitle = "Using the whiteout property" } { - \override Score.StaffSymbol #'layer = #4 - \override Staff.TimeSignature #'layer = #3 + \override Score.StaffSymbol.layer = #4 + \override Staff.TimeSignature.layer = #3 b'2 b'~ - \once \override Staff.TimeSignature #'whiteout = ##t + \once \override Staff.TimeSignature.whiteout = ##t \time 3/4 b' r4 }