X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=Documentation%2Fsnippets%2Fmaking-an-object-invisible-with-the-transparent-property.ly;h=b39f9375c24b1f2c054106f2d11a5ab3e1bc433a;hb=cee6cea4ed55eb4fa1f9d83c997ebc19744a6e1a;hp=32af8183d2c9b7186c49c7bcd395d32808a02d9b;hpb=3d8089a42af6304edb8dad56220e845c84832bb2;p=lilypond.git diff --git a/Documentation/snippets/making-an-object-invisible-with-the-transparent-property.ly b/Documentation/snippets/making-an-object-invisible-with-the-transparent-property.ly index 32af8183d2..b39f9375c2 100644 --- a/Documentation/snippets/making-an-object-invisible-with-the-transparent-property.ly +++ b/Documentation/snippets/making-an-object-invisible-with-the-transparent-property.ly @@ -1,13 +1,18 @@ -%% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it -%% This file is in the public domain. -\version "2.13.1" +% DO NOT EDIT this file manually; it is automatically +% generated from Documentation/snippets/new +% Make any changes in Documentation/snippets/new/ +% and then run scripts/auxiliar/makelsr.py +% +% This file is in the public domain. +%% Note: this file works from version 2.19.21 +\version "2.19.21" \header { lsrtags = "rhythms, simultaneous-notes, 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 +printed in @qq{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, ties and beams can be attached to it. @@ -15,22 +20,23 @@ part in collisions, and slurs, ties and beams can be attached to it. 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. " doctitle = "Making an object invisible with the 'transparent property" } % begin verbatim -\relative c'' { + +\relative { \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 + \once \hide Stem + \once \override Stem.length = #8 + b'8 ~ 8\noBeam + \once \hide Stem + \once \override Stem.length = #8 + g8 ~ 8\noBeam } \\ {