Using the whiteout property: Difference between revisions

Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Line 3: Line 3:
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, setting the <code>whiteout</code> property of <code>TimeSignature</code>. To do this, <code>TimeSignature</code> is moved to a layer above <code>Tie</code>, which is left in the default layer 1, and <code>StaffSymbol</code> is moved to a layer above <code>TimeSignature</code> so it is not masked.
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, setting the <code>whiteout</code> property of <code>TimeSignature</code>. To do this, <code>TimeSignature</code> is moved to a layer above <code>Tie</code>, which is left in the default layer 1, and <code>StaffSymbol</code> is moved to a layer above <code>TimeSignature</code> so it is not masked.


<lilypond version="2.24.0">
<lilypond version="2.24">
{
{
   \override Score.StaffSymbol.layer = 4
   \override Score.StaffSymbol.layer = 4