]> 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
45 %% Translation of GIT committish: d96023d8792c8af202c7cb8508010c0d3648899d
46   doctitlede = "Eigenschaften des Schlüssels optimieren"
47   texidocde = "
48 Der Befehl @code{\\clef \"treble_8\"} ist gleichbedeutend mit einem
49 expliziten Setzen der Eigenschaften von @code{clefGlyph},
50 @code{clefPosition} (welche die vertikale Position des Schlüssels bestimmt),
51 @code{middleCPosition} und @code{clefOctavation}.  Ein Schlüssel wird
52 ausgegeben, wenn eine der Eigenschaften außer @code{middleCPosition} sich
53 ändert.
54
55 Eine Änderung des Schriftzeichens (Glyph), der Schlüsselposition oder der
56 Oktavierung selber ändert noch nicht die Position der darauf folgenden Noten
57 auf dem System: das geschieht nur, wenn auch die Position des
58 eingestrichenen@tie{}C (middleCPosition) angegeben wird.  Die
59 Positionsparameter sind relativ zur Mittellinie des Systems, dabei versetzen
60 positive Zahlen die Position nach oben, jeweils eine Zahl für jede Linie
61 plus Zwischenraum.  Der @code{clefOctavation}-Wert ist normalerweise auf 7,
62 -7, 15 oder -15 gesetzt, aber auch andere Werte sind gültig.
63
64 Wenn ein Schlüsselwechsel an einem Zeilenwechsel geschieht, wird das neue
65 Symbol sowohl am Ende der alten Zeilen als auch am Anfang der neuen Zeile
66 ausgegeben.  Wenn der Warnungs-Schlüssel am Ende der alten Zeile nicht
67 erforderlich ist, kann er unterdrückt werden, indem die
68 @code{explicitClefVisibility}-Eigenschaft des @code{Staff}-Kontextes auf den
69 Wert @code{end-of-line-invisible} gesetzt wird.  Das Standardverhalten kann
70 mit @code{\\unset Staff.explicitClefVisibility} wieder hergestellt werden.
71
72 Die folgenden Beispiele zeigen die Möglichkeiten, wenn man diese
73 Eigenschaften manuell setzt.  Auf der ersten Zeile erhalten die manuellen
74 Änderungen die ursprüngliche relative Positionierung von Schlüssel und
75 Noten, auf der zweiten Zeile nicht.
76 "
77
78   texidoc = "
79 The command @code{\\clef \"treble_8\"} is equivalent to setting
80 @code{clefGlyph}, @code{clefPosition} (which controls the vertical
81 position of the clef), @code{middleCPosition} and
82 @code{clefOctavation}. A clef is printed when any of the properties
83 except @code{middleCPosition} are changed.
84
85
86 Note that changing the glyph, the position of the clef, or the
87 octavation does not in itself change the position of subsequent notes
88 on the staff: the position of middle C must also be specified to do
89 this. The positional parameters are relative to the staff center line,
90 positive numbers displacing upwards, counting one for each line and
91 space. The @code{clefOctavation} value would normally be set to 7, -7,
92 15 or -15, but other values are valid.
93
94
95 When a clef change takes place at a line break the new clef symbol is
96 printed at both the end of the previous line and the beginning of the
97 new line by default. If the warning clef at the end of the previous
98 line is not required it can be suppressed by setting the @code{Staff}
99 property @code{explicitClefVisibility} to the value
100 @code{end-of-line-invisible}. The default behavior can be recovered
101 with  @code{\\unset Staff.explicitClefVisibility}.
102
103 The following examples show the possibilities when setting these
104 properties manually. On the first line, the manual changes preserve the
105 standard relative positioning of clefs and notes, whereas on the second
106 line, they do not.
107
108 "
109   doctitle = "Tweaking clef properties"
110 } % begin verbatim
111
112 \layout { ragged-right = ##t }
113
114 {
115   % The default treble clef
116   c'1
117   % The standard bass clef
118   \set Staff.clefGlyph = #"clefs.F"
119   \set Staff.clefPosition = #2
120   \set Staff.middleCPosition = #6
121   c'1
122   % The baritone clef
123   \set Staff.clefGlyph = #"clefs.C"
124   \set Staff.clefPosition = #4
125   \set Staff.middleCPosition = #4
126   c'1
127   % The standard choral tenor clef
128   \set Staff.clefGlyph = #"clefs.G"
129   \set Staff.clefPosition = #-2
130   \set Staff.clefOctavation = #-7
131   \set Staff.middleCPosition = #1
132   c'1
133   % A non-standard clef
134   \set Staff.clefPosition = #0
135   \set Staff.clefOctavation = #0
136   \set Staff.middleCPosition = #-4
137   c'1 \break
138
139   % The following clef changes do not preserve
140   % the normal relationship between notes and clefs:
141
142   \set Staff.clefGlyph = #"clefs.F"
143   \set Staff.clefPosition = #2
144   c'1
145   \set Staff.clefGlyph = #"clefs.G"
146   c'1
147   \set Staff.clefGlyph = #"clefs.C"
148   c'1
149   \set Staff.clefOctavation = #7
150   c'1
151   \set Staff.clefOctavation = #0
152   \set Staff.clefPosition = #0
153   c'1
154
155   % Return to the normal clef:
156
157   \set Staff.middleCPosition = #0
158   c'1
159 }
160