]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/making-an-object-invisible-with-the-transparent-property.ly
lilypond-book robustness: ensure EOL at the end of @verbatim
[lilypond.git] / input / lsr / making-an-object-invisible-with-the-transparent-property.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.13.1"
4
5 \header {
6   lsrtags = "rhythms, simultaneous-notes, tweaks-and-overrides"
7
8   texidoc = "
9 Setting the @code{transparent} property will cause an object to be
10 printed in \"invisible ink\": the object is not printed, but all its
11 other behavior is retained.  The object still takes up space, it takes
12 part in collisions, and slurs, ties and beams can be attached to it.
13
14
15 This snippet demonstrates how to connect different voices using ties.
16 Normally, ties only connect two notes in the same voice.  By
17 introducing a tie in a different voice, and blanking the first up-stem
18 in that voice, the tie appears to cross voices. 
19
20 "
21   doctitle = "Making an object invisible with the 'transparent property"
22 } % begin verbatim
23
24 \relative c'' {
25   \time 2/4
26   <<
27     {
28       \once \override Stem #'transparent = ##t
29       \once \override Stem #'length = #8
30       b8 ~ b\noBeam
31       \once \override Stem #'transparent = ##t
32       \once \override Stem #'length = #8
33       g8 ~ g\noBeam
34     }
35     \\
36     {
37       b8 g g e
38     }
39   >>
40 }