Markup command name changes.
[lilypond.git] / input / new / making-an-object-invisible-with-the-transparent-property.ly
blob801955d2db372bb7f83ea13ecd2c6bbff5beffd0
1 \version "2.11.23"
2 \header {
3 lsrtags = "rhythms,tweaks-and-overrides"
4 texidoc = "
5 Setting the @code{transparent} property will cause an object to be
6 printed in \"invisible ink\": the object is not printed, but all its
7 other behavior is retained. The object still takes up space, it takes
8 part in collisions, and slurs, ties and beams can be attached to it.
10 This snippet demonstrates how to connect different voices using ties.
11 Normally, ties only connect two notes in the same voice. By
12 introducing a tie in a different voice, and blanking the first up-stem
13 in that voice, the tie appears to cross voices. To prevent the blanked stem's
14 flag from interfering with tie positioning, the stem is extended.
16 doctitle = "Making an object invisible with the transparent property"
19 \relative c'' {
20 \time 2/4
21 << {
22 \once \override Stem #'transparent = ##t
23 \once \override Stem #'length = #8
24 b8 ~ b\noBeam
25 \once \override Stem #'transparent = ##t
26 \once \override Stem #'length = #8
27 g8 ~ g\noBeam
28 } \\ {
29 b8 g g e
30 } >>