X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fnew%2Fmaking-an-object-invisible-with-the-transparent-property.ly;h=47014eea84109061e870f004f681a4f25e5b09cc;hb=38d7d319eabc906e82fb42002678c6d42a23b6f7;hp=543debc168c39d83354edadfd70bee26e32ca4c5;hpb=917f05c8cc3e540a43adc35f6ba3912de87ec7aa;p=lilypond.git diff --git a/input/new/making-an-object-invisible-with-the-transparent-property.ly b/input/new/making-an-object-invisible-with-the-transparent-property.ly index 543debc168..47014eea84 100644 --- a/input/new/making-an-object-invisible-with-the-transparent-property.ly +++ b/input/new/making-an-object-invisible-with-the-transparent-property.ly @@ -1,26 +1,35 @@ -\version "2.11.23" -\layout { ragged-right= ##t } +\version "2.12.0" \header { - doctitle = "Making an object invisible with the transparent property" lsrtags = "rhythms,tweaks-and-overrides" texidoc = " -Setting the @code{transparent} property will cause an object to be -printed in `invisible ink': the object is not printed, but all its +Setting the @code{'transparent} property will cause an object to be +printed in \"invisible ink\": the object is not printed, but all its other behavior is retained. The object still takes up space, it takes -part in collisions, and slurs, and ties and beams can be attached to it. - +part in collisions, and slurs, ties and beams can be attached to it. -The snippet demonstrates how to connect different voices using ties. +This snippet demonstrates how to connect different voices using ties. Normally, ties only connect two notes in the same voice. By introducing a tie in a different voice, and blanking the first up-stem -in that voice, the tie appears to cross voices. -" } +in that voice, the tie appears to cross voices. To prevent the blanked stem's +flag from interfering with tie positioning, the stem is extended. +" + doctitle = "Making an object invisible with the transparent property" +} -\relative c'' << - { - \once \override Stem #'transparent = ##t - b8~ b8\noBeam - } \\ { - b[ g8] - } ->> +\relative c'' { + \time 2/4 + << + { + \once \override Stem #'transparent = ##t + \once \override Stem #'length = #8 + b8 ~ b\noBeam + \once \override Stem #'transparent = ##t + \once \override Stem #'length = #8 + g8 ~ g\noBeam + } + \\ + { + b8 g g e + } + >> +}