]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/making-an-object-invisible-with-the-transparent-property.ly
Merge remote-tracking branch 'origin/master' into translation
[lilypond.git] / Documentation / snippets / new / making-an-object-invisible-with-the-transparent-property.ly
1 \version "2.17.6"
2
3 \header {
4   lsrtags = "rhythms, simultaneous-notes, tweaks-and-overrides"
5
6   texidoc = "
7 Setting the @code{transparent} property will cause an object to be
8 printed in @qq{invisible ink}: the object is not printed, but all its
9 other behavior is retained.  The object still takes up space, it takes
10 part in collisions, and slurs, ties and beams can be attached to it.
11
12
13 This snippet demonstrates how to connect different voices using ties.
14 Normally, ties only connect two notes in the same voice.  By
15 introducing a tie in a different voice, and blanking the first up-stem
16 in that voice, the tie appears to cross voices.
17
18 "
19   doctitle = "Making an object invisible with the 'transparent property"
20 }
21
22 \relative c'' {
23   \time 2/4
24   <<
25     {
26       \once \override Stem.transparent = ##t
27       \once \override Stem.length = #8
28       b8 ~ b\noBeam
29       \once \override Stem.transparent = ##t
30       \once \override Stem.length = #8
31       g8 ~ g\noBeam
32     }
33     \\
34     {
35       b8 g g e
36     }
37   >>
38 }