]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/stemlets.ly
276526f730a53d30f9aadfc5da8703c6b28d2f9a
[lilypond.git] / Documentation / snippets / stemlets.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.14.2"
8
9 \header {
10   lsrtags = "contemporary-notation, rhythms"
11
12 %% Translation of GIT committish: 28097cf54698db364afeb75658e4c8e0e0ccd716
13   texidocfr = "
14 Certaines conventions en matière de notation autorisent les ligatures à
15 enjamber des silences.  Dans certains cas, des moignons de hampe
16 accrochés à la ligature offrent une meilleure visibilité du rythme, et
17 certaines éditions modernes vont même alors jusqu'à omettre le silence.
18
19 Cet exemple illustre la progression : notation traditionnelle, ligature
20 enjambant le silence, silence surplombé d'un moignon et enfin seule une
21 hampe tronquée.  Les moignons s'obtiennent par amendement de la
22 propriété @code{'stemlet-length} de l'objet @code{Stem}, alors que les
23 silences sont masqués par activation de la propriété de transparence.
24
25 Les @emph{markups} ajoutés au code ci-dessous mettent en exergue les
26 différentes notations.
27
28 "
29   doctitlefr = "Moignons de hampe"
30
31   texidoc = "
32 In some notational conventions beams are allowed to extend over rests.
33 Depending on preference, these beams may drop 'stemlets' to help the
34 eye appreciate the rhythm better, and in some modern music the rest
35 itself is omitted and only the stemlet remains.
36
37
38 This snippet shows a progression from traditional notation, to beams
39 over the rest, to stemlets over the rest, to stemlets alone.  Stemlets
40 are generated by overriding the @code{'stemlet-length} property of
41 @code{Stem}, while rests are hidden by setting @code{'transparent =
42 ##t}.
43
44
45 Some @code{\\markup} elements are included in the source to highlight
46 the different notations.
47
48 "
49   doctitle = "Stemlets"
50 } % begin verbatim
51
52
53 \paper { ragged-right = ##f }
54
55 {
56   c'16^\markup { traditional } d' r f'
57   g'16[^\markup { beams over rests } f' r d']
58
59   % N.B. use Score.Stem to set for the whole score.
60   \override Staff.Stem #'stemlet-length = #0.75
61
62   c'16[^\markup { stemlets over rests } d' r f']
63   g'16[^\markup { stemlets and no rests } f'
64   \once \override Rest #'transparent = ##t
65   r16 d']
66 }
67