]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/tweaking-clef-properties.ly
Merge branch 'master' into lilypond/translation
[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.20"
5
6 \header {
7   lsrtags = "pitches, staff-notation, tweaks-and-overrides"
8
9 %% Translation of GIT committish: 0b55335aeca1de539bf1125b717e0c21bb6fa31b
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: 0a868be38a775ecb1ef935b079000cebbc64de40
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: 4ab2514496ac3d88a9f3121a76f890c97cedcf4e
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.  Les exemples suivant font apparaître des possibilités de
83 réglage manuel de ces propriétés.
84
85
86 Modifier le glyphe, la position de la clef ou son octaviation ne
87 changera pas la position des notes ; il faut pour y parvenir modifier
88 aussi la position du do médium.  Le positionnement est relatif à la
89 ligne médiane, un nombre positif faisant monter, chaque ligne ou
90 interligne comptant pour 1.  La valeur de @code{clefOctavation} devrait
91 être de 7, -7, 15 ou -15, bien que rien ne vous empêche de lui affecter
92 une autre valeur.
93
94
95 Lorsqu'un changement de clef intervient en même temps qu'un saut de
96 ligne, la nouvelle clef est imprimer à la fois en fin de ligne et au
97 début de la suivante.  Vous pouvez toujours supprimer cette « clef de
98 précaution » en affectant la valeur @code{end-of-line-invisible} à la
99 propriété @code{explicitClefVisibility} du contexte @code{Staff}.  Le
100 comportement par défaut sera réactivé par
101 @w{@code{\\unset@tie{}Staff.explicitClefVisibility}}.
102
103
104 Les exemples qui suivent illustrent les différentes possibilités de
105 définir ces propriétés manuellement.  Sur la première ligne, la
106 position relative des notes par rapport aux clefs sont préservées, ce
107 qui n'est pas le cas pour la deuxième ligne.
108
109 "
110   doctitlefr = "Affinage des propriétés d'une clef"
111
112   texidoc = "
113 The command @code{\\clef \"treble_8\"} is equivalent to setting
114 @code{clefGlyph}, @code{clefPosition} (which controls the vertical
115 position of the clef), @code{middleCPosition} and
116 @code{clefOctavation}. A clef is printed when any of the properties
117 except @code{middleCPosition} are changed.
118
119
120 Note that changing the glyph, the position of the clef, or the
121 octavation does not in itself change the position of subsequent notes
122 on the staff: the position of middle C must also be specified to do
123 this. The positional parameters are relative to the staff center line,
124 positive numbers displacing upwards, counting one for each line and
125 space. The @code{clefOctavation} value would normally be set to 7, -7,
126 15 or -15, but other values are valid.
127
128
129 When a clef change takes place at a line break the new clef symbol is
130 printed at both the end of the previous line and the beginning of the
131 new line by default. If the warning clef at the end of the previous
132 line is not required it can be suppressed by setting the @code{Staff}
133 property @code{explicitClefVisibility} to the value
134 @code{end-of-line-invisible}. The default behavior can be recovered
135 with  @code{\\unset Staff.explicitClefVisibility}.
136
137 The following examples show the possibilities when setting these
138 properties manually. On the first line, the manual changes preserve the
139 standard relative positioning of clefs and notes, whereas on the second
140 line, they do not.
141
142 "
143   doctitle = "Tweaking clef properties"
144 } % begin verbatim
145
146 \layout { ragged-right = ##t }
147
148 {
149   % The default treble clef
150   c'1
151   % The standard bass clef
152   \set Staff.clefGlyph = #"clefs.F"
153   \set Staff.clefPosition = #2
154   \set Staff.middleCPosition = #6
155   c'1
156   % The baritone clef
157   \set Staff.clefGlyph = #"clefs.C"
158   \set Staff.clefPosition = #4
159   \set Staff.middleCPosition = #4
160   c'1
161   % The standard choral tenor clef
162   \set Staff.clefGlyph = #"clefs.G"
163   \set Staff.clefPosition = #-2
164   \set Staff.clefOctavation = #-7
165   \set Staff.middleCPosition = #1
166   c'1
167   % A non-standard clef
168   \set Staff.clefPosition = #0
169   \set Staff.clefOctavation = #0
170   \set Staff.middleCPosition = #-4
171   c'1 \break
172
173   % The following clef changes do not preserve
174   % the normal relationship between notes and clefs:
175
176   \set Staff.clefGlyph = #"clefs.F"
177   \set Staff.clefPosition = #2
178   c'1
179   \set Staff.clefGlyph = #"clefs.G"
180   c'1
181   \set Staff.clefGlyph = #"clefs.C"
182   c'1
183   \set Staff.clefOctavation = #7
184   c'1
185   \set Staff.clefOctavation = #0
186   \set Staff.clefPosition = #0
187   c'1
188
189   % Return to the normal clef:
190
191   \set Staff.middleCPosition = #0
192   c'1
193 }
194