]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/making-an-object-invisible-with-the-transparent-property.ly
df9fd2605167bf59a4f2770d514c8f8edd496073
[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.15.15
8 \version "2.15.15"
9
10 \header {
11 %% Translation of GIT committish: 57f9346bb030f49336a858fcbf1519366fe56454
12   texidocfr = "
13 Une modification de la propriété @code{transparent} permet d'imprimer un
14 objet à « l'encre sympathique » : l'objet n'est pas affiché bien que tous
15 ses attributs soient préservés.  L'objet en question occupe donc sa
16 place, est pris en compte lors de collisions, et peut se voir attaché
17 liaisons ou ligatures.
18
19 Cet exemple illustre la manière de connecter deux voix par une liaison
20 de prolongation.  Les liaisons de prolongation ne peuvent normalement
21 intervenir que dans la même voix.  Dès lors que la liaison est entamée
22 dans une autre voix et que la première  hampe ascendante est rendue
23 transparente dans cette même voix, la liaison semble passer d'une voix à
24 l'autre.
25
26 "
27   doctitlefr = "Recours à la propriété 'transparent pour rendre des objets invisibles"
28
29   lsrtags = "rhythms, simultaneous-notes, tweaks-and-overrides"
30
31   texidoc = "
32 Setting the @code{transparent} property will cause an object to be
33 printed in @qq{invisible ink}: the object is not printed, but all its
34 other behavior is retained.  The object still takes up space, it takes
35 part in collisions, and slurs, ties and beams can be attached to it.
36
37
38 This snippet demonstrates how to connect different voices using ties.
39 Normally, ties only connect two notes in the same voice.  By
40 introducing a tie in a different voice, and blanking the first up-stem
41 in that voice, the tie appears to cross voices.
42
43 "
44   doctitle = "Making an object invisible with the 'transparent property"
45 } % begin verbatim
46
47
48 \relative c'' {
49   \time 2/4
50   <<
51     {
52       \once \override Stem #'transparent = ##t
53       \once \override Stem #'length = #8
54       b8 ~ b\noBeam
55       \once \override Stem #'transparent = ##t
56       \once \override Stem #'length = #8
57       g8 ~ g\noBeam
58     }
59     \\
60     {
61       b8 g g e
62     }
63   >>
64 }