]> git.donarmstrong.com Git - lilypond.git/blob - input/new/making-an-object-invisible-with-the-transparent-property.ly
Merge master into nested-bookparts
[lilypond.git] / input / new / making-an-object-invisible-with-the-transparent-property.ly
1 \version "2.11.61"
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.
9
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.
15 "
16   doctitle = "Making an object invisible with the transparent property"
17 }
18
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   \\
30   {
31     b8 g g e
32   } >>
33 }