]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/making-an-object-invisible-with-the-transparent-property.ly
Merge master into nested-bookparts
[lilypond.git] / input / lsr / making-an-object-invisible-with-the-transparent-property.ly
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 \version "2.11.62"
4 \header {
5   lsrtags = "rhythms,tweaks-and-overrides"
6   texidoc = "
7 Setting the @code{'transparent} property will cause an object to be
8 printed in \"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 This snippet demonstrates how to connect different voices using ties.
13 Normally, ties only connect two notes in the same voice.  By
14 introducing a tie in a different voice, and blanking the first up-stem
15 in that voice, the tie appears to cross voices.  To prevent the blanked stem's
16 flag from interfering with tie positioning, the stem is extended.
17 "
18   doctitle = "Making an object invisible with the transparent property"
19 } % begin verbatim
20
21 \relative c'' {
22   \time 2/4
23   << {
24     \once \override Stem #'transparent = ##t
25     \once \override Stem #'length = #8
26     b8 ~ b\noBeam
27     \once \override Stem #'transparent = ##t
28     \once \override Stem #'length = #8
29     g8 ~ g\noBeam
30   }
31   \\
32   {
33     b8 g g e
34   } >>
35 }