]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/tweaking-clef-properties.ly
Doc: run makelsr again to propagate markers in texidocs.
[lilypond.git] / Documentation / snippets / tweaking-clef-properties.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.0"
8
9 \header {
10 %% Translation of GIT committish: bbf8fd2b5a3ebf20a1fdc91613dc49045a53a270
11   texidocit = "
12 Il comando @code{\\clef \"treble_8\"} equivale a impostare
13 @code{clefGlyph}, @code{clefPosition} (che regola la posizione
14 verticale della chiave), @code{middleCPosition} e
15 @code{clefOctavation}. Viene stampata una chiave quando cambia una
16 di queste proprietà, eccetto @code{middleCPosition}.
17
18
19 La modifica del glifo, della posizione della chiave o
20 dell'ottavazione non è sufficiente per cambiare la posizione delle
21 note che seguono sul rigo: bisogna anche specificare la posizione
22 del Do centrale (middle C). I parametri di posizione sono relativi
23 alla linea centrale del rigo, con i numeri positivi che indicano
24 la parte superiore: ogni linea e spazio valgono uno.  Il valore
25 @code{clefOctavation} di norma è impostato su 7, -7, 15
26 o -15, ma altri valori sono considerati validi.
27
28
29 Quando un cambio di chiave avviene in corrispondenza di un'interruzione di
30 linea, di norma il simbolo della nuova chiave viene inserito sia alla fine
31 del rigo precedente sia all'inizio di quello successivo.  Se la
32 chiave di avvertimento a fine rigo non fosse necessaria,
33 può essere nascosta impostando la proprietà @code{explicitClefVisibility}
34 del contesto @code{Staff} su @code{end-of-line-invisible}. Il comportamento
35 predefinito può essere ripristinato con @code{\\unset Staff.explicitClefVisibility}.
36
37 Gli esempi seguenti mostrano le possibilità date dall'impostazione
38 manuale di tali proprietà. Sulla prima linea le modifiche manuali preservano
39 il posizionamento relativo standard di chiavi e note, mentre sulla seconda
40 linea non lo fanno.
41
42
43 "
44   doctitleit = "Modifiche manuali della proprietà della chiave"
45
46   lsrtags = "pitches, staff-notation, tweaks-and-overrides"
47
48
49
50 %% Translation of GIT committish: 6977ddc9a3b63ea810eaecb864269c7d847ccf98
51   doctitlees = "Trucaje de las propiedades de clave"
52   texidoces = "
53 La instrucción @code{\\clef \"treble_8\"} equivale a un ajuste de
54 @code{clefGlyph}, @code{clefPosition} (que controla la posición
55 vertical de la clave), @code{middleCPosition} y
56 @code{clefOctavation}.  Se imprime una clave cada vez que se
57 modifica cualquiera de las propiedades excepto
58 @code{middleCPosition}.
59
60 Observe que la modificación del glifo, la posición de la clave o
61 su octavación, no cambian 'per se' la posición de las siguientes
62 notas del pentagrama: para hacer esto también se debe especificar
63 la posición del Do central.  Los parámetros posicionales están en
64 relación con la tercera línea del pentagrama, los números
65 positivos desplazan hacia arriba, contando una unidad por cada
66 línea y espacio.  El valor de @code{clefOctavation} se
67 establecería normalmente a 7, -7, 15 or -15, pero son válidos
68 otros valores.
69
70 Cuando se produce un cambio de clave en el salto de línea se
71 imprime la clave nueva tanto al final de la línea anterior como al
72 principio de la nueva, de forma predeterminada.  Si no se necesita
73 la clave de advertencia al final de la línea anterior, se puede
74 quitar estableciendo el valor de la propiedad
75 @code{explicitClefVisibility} de @code{Staff}, a
76 @code{end-of-line-invisible}.  El comportamiento predeterminado se
77 puede recuperar con @code{\\unset Staff.explicitClefVisibility}.
78
79 Los siguientes ejemplos muestran las posibilidades cuando se
80 ajustan estas propiedades manualmente.  En la primera línea, los
81 cambios manuales preservan el posicionamiento relativo estándar de
82 las claves y las notas, pero no lo hacen en la segunda línea.
83 "
84
85
86 %% Translation of GIT committish: 0a868be38a775ecb1ef935b079000cebbc64de40
87   doctitlede = "Eigenschaften des Schlüssels optimieren"
88   texidocde = "
89 Der Befehl @code{\\clef \"treble_8\"} ist gleichbedeutend mit einem
90 expliziten Setzen der Eigenschaften von @code{clefGlyph},
91 @code{clefPosition} (welche die vertikale Position des Schlüssels bestimmt),
92 @code{middleCPosition} und @code{clefOctavation}.  Ein Schlüssel wird
93 ausgegeben, wenn eine der Eigenschaften außer @code{middleCPosition} sich
94 ändert.
95
96 Eine Änderung des Schriftzeichens (Glyph), der Schlüsselposition oder der
97 Oktavierung selber ändert noch nicht die Position der darauf folgenden Noten
98 auf dem System: das geschieht nur, wenn auch die Position des
99 eingestrichenen@tie{}C (middleCPosition) angegeben wird.  Die
100 Positionsparameter sind relativ zur Mittellinie des Systems, dabei versetzen
101 positive Zahlen die Position nach oben, jeweils eine Zahl für jede Linie
102 plus Zwischenraum.  Der @code{clefOctavation}-Wert ist normalerweise auf 7,
103 -7, 15 oder -15 gesetzt, aber auch andere Werte sind gültig.
104
105 Wenn ein Schlüsselwechsel an einem Zeilenwechsel geschieht, wird das neue
106 Symbol sowohl am Ende der alten Zeilen als auch am Anfang der neuen Zeile
107 ausgegeben.  Wenn der Warnungs-Schlüssel am Ende der alten Zeile nicht
108 erforderlich ist, kann er unterdrückt werden, indem die
109 @code{explicitClefVisibility}-Eigenschaft des @code{Staff}-Kontextes auf den
110 Wert @code{end-of-line-invisible} gesetzt wird.  Das Standardverhalten kann
111 mit @code{\\unset Staff.explicitClefVisibility} wieder hergestellt werden.
112
113 Die folgenden Beispiele zeigen die Möglichkeiten, wenn man diese
114 Eigenschaften manuell setzt.  Auf der ersten Zeile erhalten die manuellen
115 Änderungen die ursprüngliche relative Positionierung von Schlüssel und
116 Noten, auf der zweiten Zeile nicht.
117 "
118
119 %% Translation of GIT committish: 3b125956b08d27ef39cd48bfa3a2f1e1bb2ae8b4
120   texidocfr = "
121 La commande @code{\\clef \"treble_8\"} équivaut à définir @code{clefGlyph},
122 @code{clefPosition} -- qui contrôle la position verticale de la clé --
123 @code{middleCPosition} et @code{clefOctavation}.  Une clé est imprimée
124 lorsque l'une de ces propriétés, hormis @code{middleCPosition}, est
125 modifiée.  Les exemples suivant font apparaître des possibilités de
126 réglage manuel de ces propriétés.
127
128
129 Modifier le glyphe, la position de la clef ou son octaviation ne
130 changera pas la position des notes@tie{}; il faut pour y parvenir
131 modifier aussi la position du do médium.  Le positionnement est relatif
132 à la ligne médiane, un nombre positif faisant monter, chaque ligne ou
133 interligne comptant pour@tie{}1.  La valeur de @code{clefOctavation}
134 devrait être de 7, -7, 15 ou -15, bien que rien ne vous empêche de lui
135 affecter une autre valeur.
136
137
138 Lorsqu'un changement de clef intervient en même temps qu'un saut de
139 ligne, la nouvelle clef est imprimée à la fois en fin de ligne et au
140 début de la suivante.  Vous pouvez toujours supprimer cette @qq{clef de
141 précaution} en affectant la valeur @code{end-of-line-invisible} à la
142 propriété @code{explicitClefVisibility} du contexte @code{Staff}.  Le
143 comportement par défaut sera réactivé par
144 @w{@code{\\unset@tie{}Staff.explicitClefVisibility}}.
145
146
147 Les exemples qui suivent illustrent les différentes possibilités de
148 définir ces propriétés manuellement.  Sur la première ligne, la
149 position relative des notes par rapport aux clefs est préservée, ce
150 qui n'est pas le cas pour la deuxième ligne.
151
152 "
153   doctitlefr = "Affinage des propriétés d'une clef"
154
155   texidoc = "
156 The command @code{\\clef \"treble_8\"} is equivalent to setting
157 @code{clefGlyph}, @code{clefPosition} (which controls the vertical
158 position of the clef), @code{middleCPosition} and
159 @code{clefOctavation}. A clef is printed when any of the properties
160 except @code{middleCPosition} are changed.
161
162
163 Note that changing the glyph, the position of the clef, or the
164 octavation does not in itself change the position of subsequent notes
165 on the staff: the position of middle C must also be specified to do
166 this. The positional parameters are relative to the staff center line,
167 positive numbers displacing upwards, counting one for each line and
168 space. The @code{clefOctavation} value would normally be set to 7, -7,
169 15 or -15, but other values are valid.
170
171
172 When a clef change takes place at a line break the new clef symbol is
173 printed at both the end of the previous line and the beginning of the
174 new line by default. If the warning clef at the end of the previous
175 line is not required it can be suppressed by setting the @code{Staff}
176 property @code{explicitClefVisibility} to the value
177 @code{end-of-line-invisible}. The default behavior can be recovered
178 with  @code{\\unset Staff.explicitClefVisibility}.
179
180 The following examples show the possibilities when setting these
181 properties manually. On the first line, the manual changes preserve the
182 standard relative positioning of clefs and notes, whereas on the second
183 line, they do not.
184
185 "
186   doctitle = "Tweaking clef properties"
187 } % begin verbatim
188
189 \layout { ragged-right = ##t }
190
191 {
192   % The default treble clef
193   c'1
194   % The standard bass clef
195   \set Staff.clefGlyph = #"clefs.F"
196   \set Staff.clefPosition = #2
197   \set Staff.middleCPosition = #6
198   c'1
199   % The baritone clef
200   \set Staff.clefGlyph = #"clefs.C"
201   \set Staff.clefPosition = #4
202   \set Staff.middleCPosition = #4
203   c'1
204   % The standard choral tenor clef
205   \set Staff.clefGlyph = #"clefs.G"
206   \set Staff.clefPosition = #-2
207   \set Staff.clefOctavation = #-7
208   \set Staff.middleCPosition = #1
209   c'1
210   % A non-standard clef
211   \set Staff.clefPosition = #0
212   \set Staff.clefOctavation = #0
213   \set Staff.middleCPosition = #-4
214   c'1 \break
215
216   % The following clef changes do not preserve
217   % the normal relationship between notes and clefs:
218
219   \set Staff.clefGlyph = #"clefs.F"
220   \set Staff.clefPosition = #2
221   c'1
222   \set Staff.clefGlyph = #"clefs.G"
223   c'1
224   \set Staff.clefGlyph = #"clefs.C"
225   c'1
226   \set Staff.clefOctavation = #7
227   c'1
228   \set Staff.clefOctavation = #0
229   \set Staff.clefPosition = #0
230   c'1
231
232   % Return to the normal clef:
233
234   \set Staff.middleCPosition = #0
235   c'1
236 }
237