]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/making-an-object-invisible-with-the-transparent-property.ly
Release: update news.
[lilypond.git] / Documentation / snippets / making-an-object-invisible-with-the-transparent-property.ly
1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
5 %
6 % This file is in the public domain.
7 %% Note: this file works from version 2.17.6
8 \version "2.17.6"
9
10 \header {
11   lsrtags = "rhythms, simultaneous-notes, tweaks-and-overrides"
12
13   texidoc = "
14 Setting the @code{transparent} property will cause an object to be
15 printed in @qq{invisible ink}: the object is not printed, but all its
16 other behavior is retained.  The object still takes up space, it takes
17 part in collisions, and slurs, ties and beams can be attached to it.
18
19
20 This snippet demonstrates how to connect different voices using ties.
21 Normally, ties only connect two notes in the same voice.  By
22 introducing a tie in a different voice, and blanking the first up-stem
23 in that voice, the tie appears to cross voices.
24
25 "
26   doctitle = "Making an object invisible with the 'transparent property"
27 } % begin verbatim
28
29
30 \relative c'' {
31   \time 2/4
32   <<
33     {
34       \once \override Stem.transparent = ##t
35       \once \override Stem.length = #8
36       b8 ~ b\noBeam
37       \once \override Stem.transparent = ##t
38       \once \override Stem.length = #8
39       g8 ~ g\noBeam
40     }
41     \\
42     {
43       b8 g g e
44     }
45   >>
46 }