]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/tweaking-clef-properties.ly
Merge branch 'lilypond/translation' of ssh://jomand@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / Documentation / snippets / tweaking-clef-properties.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.4"
5
6 \header {
7   lsrtags = "pitches, staff-notation, tweaks-and-overrides"
8
9 %% Translation of GIT committish: b2d4318d6c53df8469dfa4da09b27c15a374d0ca
10   doctitlees = "Trucaje de las propiedades de clave"
11   texidoces = "
12 La instrucción @code{\\clef \"treble_8\"} equivale a un ajuste de
13 @code{clefGlyph}, @code{clefPosition} (que controla la posición
14 vertical de la clave), @code{middleCPosition} y
15 @code{clefOctavation}.  Se imprime una clave cada vez que se
16 modifica cualquiera de las propiedades excepto
17 @code{middleCPosition}.
18
19 Observe que la modificación del glifo, la posición de la clave o
20 su octavación, no cambian 'per se' la posición de las siguientes
21 notas del pentagrama: para hacer esto también se debe especificar
22 la posición del Do central.  Los parámetros posicionales están en
23 relación con la tercera línea del pentagrama, los números
24 positivos desplazan hacia arriba, contando una unidad por cada
25 línea y espacio.  El valor de @code{clefOctavation} se
26 establecería normalmente a 7, -7, 15 or -15, pero son válidos
27 otros valores.
28
29 Cuando se produce un cambio de clave en el salto de línea se
30 imprime la clave nueva tanto al final de la línea anterior como al
31 principio de la nueva, de forma predeterminada.  Si no se necesita
32 la clave de advertencia al final de la línea anterior, se puede
33 quitar estableciendo el valor de la propiedad
34 @code{explicitClefVisibility} de @code{Staff}, a
35 @code{end-of-line-invisible}.  El comportamiento predeterminado se
36 puede recuperar con @code{\\unset Staff.explicitClefVisibility}.
37
38 Los siguientes ejemplos muestran las posibilidades cuando se
39 ajustan estas propiedades manualmente.  En la primera línea, los
40 cambios manuales preservan el posicionamiento relativo estándar de
41 las claves y las notas, pero no lo hacen en la segunda línea.
42 "
43
44 %% Translation of GIT committish: d96023d8792c8af202c7cb8508010c0d3648899d
45   doctitlede = "Eigenschaften des Schlüssels optimieren"
46   texidocde = "
47 Der Befehl @code{\\clef \"treble_8\"} ist gleichbedeutend mit einem
48 expliziten Setzen der Eigenschaften von @code{clefGlyph},
49 @code{clefPosition} (welche die vertikale Position des Schlüssels bestimmt),
50 @code{middleCPosition} und @code{clefOctavation}.  Ein Schlüssel wird
51 ausgegeben, wenn eine der Eigenschaften außer @code{middleCPosition} sich
52 ändert.
53
54 Eine Änderung des Schriftzeichens (Glyph), der Schlüsselposition oder der
55 Oktavierung selber ändert noch nicht die Position der darauf folgenden Noten
56 auf dem System: das geschieht nur, wenn auch die Position des
57 eingestrichenen@tie{}C (middleCPosition) angegeben wird.  Die
58 Positionsparameter sind relativ zur Mittellinie des Systems, dabei versetzen
59 positive Zahlen die Position nach oben, jeweils eine Zahl für jede Linie
60 plus Zwischenraum.  Der @code{clefOctavation}-Wert ist normalerweise auf 7,
61 -7, 15 oder -15 gesetzt, aber auch andere Werte sind gültig.
62
63 Wenn ein Schlüsselwechsel an einem Zeilenwechsel geschieht, wird das neue
64 Symbol sowohl am Ende der alten Zeilen als auch am Anfang der neuen Zeile
65 ausgegeben.  Wenn der Warnungs-Schlüssel am Ende der alten Zeile nicht
66 erforderlich ist, kann er unterdrückt werden, indem die
67 @code{explicitClefVisibility}-Eigenschaft des @code{Staff}-Kontextes auf den
68 Wert @code{end-of-line-invisible} gesetzt wird.  Das Standardverhalten kann
69 mit @code{\\unset Staff.explicitClefVisibility} wieder hergestellt werden.
70
71 Die folgenden Beispiele zeigen die Möglichkeiten, wenn man diese
72 Eigenschaften manuell setzt.  Auf der ersten Zeile erhalten die manuellen
73 Änderungen die ursprüngliche relative Positionierung von Schlüssel und
74 Noten, auf der zweiten Zeile nicht.
75 "
76 %% Translation of GIT committish: 59968a089729d7400f8ece38d5bc98dbb3656a2b
77   texidocfr = "
78 La commande @code{\\clef \"treble_8\"} équivaut à définir @code{clefGlyph},
79 @code{clefPosition} -- qui contrôle la position verticale de la clé --
80 @code{middleCPosition} et @code{clefOctavation}.  Une clé est imprimée
81 lorsque l'une de ces propriétés, hormis @code{middleCPosition}, est
82 modifiée. 
83  Les exemples suivant font
84 apparaître des possibilités de réglage manuel de ces propriétés.
85
86
87 Modifier le glyphe, la position de la clef ou son octaviation ne
88 changera pas la position des notes ; il faut pour y parvenir modifier
89 aussi la position du do médium.  Le positionnement est relatif à la
90 ligne médiane, un nombre positif faisant monter, chaque ligne ou
91 interligne comptant pour 1.  La valeur de @code{clefOctavation} devrait
92 être de 7, -7, 15 ou -15, bien que rien ne vous empêche de lui affecter
93 une autre valeur.
94
95
96 Lorsqu'un changement de clef intervient en même temps qu'un saut de
97 ligne, la nouvelle clef est imprimer à la fois en fin de ligne et au
98 début de la suivante.  Vous pouvez toujours supprimer cette « clef de 
99 précaution » en affectant la valeur @code{end-of-line-invisible} à la
100 propriété @code{explicitClefVisibility} du contexte @code{Staff}.  Le
101 comportement par défaut sera réactivé par 
102 @w{@code{\\unset@tie{}Staff.explicitClefVisibility}}. 
103
104
105 Les exemples qui suivent illustrent les différentes possibilités de
106 définir ces propriétés manuellement.  Sur la première ligne, la
107 position relative des notes par rapport aux clefs sont préservées, ce
108 qui n'est pas le cas pour la deuxième ligne.
109
110 "
111   doctitlefr = "Affinage des propriétés d'une clef"
112
113   texidoc = "
114 The command @code{\\clef \"treble_8\"} is equivalent to setting
115 @code{clefGlyph}, @code{clefPosition} (which controls the vertical
116 position of the clef), @code{middleCPosition} and
117 @code{clefOctavation}. A clef is printed when any of the properties
118 except @code{middleCPosition} are changed.
119
120
121 Note that changing the glyph, the position of the clef, or the
122 octavation does not in itself change the position of subsequent notes
123 on the staff: the position of middle C must also be specified to do
124 this. The positional parameters are relative to the staff center line,
125 positive numbers displacing upwards, counting one for each line and
126 space. The @code{clefOctavation} value would normally be set to 7, -7,
127 15 or -15, but other values are valid.
128
129
130 When a clef change takes place at a line break the new clef symbol is
131 printed at both the end of the previous line and the beginning of the
132 new line by default. If the warning clef at the end of the previous
133 line is not required it can be suppressed by setting the @code{Staff}
134 property @code{explicitClefVisibility} to the value
135 @code{end-of-line-invisible}. The default behavior can be recovered
136 with  @code{\\unset Staff.explicitClefVisibility}.
137
138 The following examples show the possibilities when setting these
139 properties manually. On the first line, the manual changes preserve the
140 standard relative positioning of clefs and notes, whereas on the second
141 line, they do not.
142
143 "
144   doctitle = "Tweaking clef properties"
145 } % begin verbatim
146
147 \layout { ragged-right = ##t }
148
149 {
150   % The default treble clef
151   c'1
152   % The standard bass clef
153   \set Staff.clefGlyph = #"clefs.F"
154   \set Staff.clefPosition = #2
155   \set Staff.middleCPosition = #6
156   c'1
157   % The baritone clef
158   \set Staff.clefGlyph = #"clefs.C"
159   \set Staff.clefPosition = #4
160   \set Staff.middleCPosition = #4
161   c'1
162   % The standard choral tenor clef
163   \set Staff.clefGlyph = #"clefs.G"
164   \set Staff.clefPosition = #-2
165   \set Staff.clefOctavation = #-7
166   \set Staff.middleCPosition = #1
167   c'1
168   % A non-standard clef
169   \set Staff.clefPosition = #0
170   \set Staff.clefOctavation = #0
171   \set Staff.middleCPosition = #-4
172   c'1 \break
173
174   % The following clef changes do not preserve
175   % the normal relationship between notes and clefs:
176
177   \set Staff.clefGlyph = #"clefs.F"
178   \set Staff.clefPosition = #2
179   c'1
180   \set Staff.clefGlyph = #"clefs.G"
181   c'1
182   \set Staff.clefGlyph = #"clefs.C"
183   c'1
184   \set Staff.clefOctavation = #7
185   c'1
186   \set Staff.clefOctavation = #0
187   \set Staff.clefPosition = #0
188   c'1
189
190   % Return to the normal clef:
191
192   \set Staff.middleCPosition = #0
193   c'1
194 }
195