]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/tweaking-clef-properties.ly
LSR: Update.
[lilypond.git] / input / lsr / tweaking-clef-properties.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.12.3"
4
5 \header {
6   lsrtags = "pitches, staff-notation, tweaks-and-overrides"
7
8   doctitlees = "Trucaje de las propiedades de clave"
9   texidoces = "
10 La instrucción @code{\\clef \"treble_8\"} equivale a un ajuste de
11 @code{clefGlyph}, @code{clefPosition} (que controla la posición
12 vertical de la clave), @code{middleCPosition} y
13 @code{clefOctavation}.  Se imprime una clave cada vez que se
14 modifica cualquiera de las propiedades excepto
15 @code{middleCPosition}.
16
17 Observe que la modificación del glifo, la posición de la clave o
18 su octavación, no cambian 'per se' la posición de las siguientes
19 notas del pentagrama: para hacer esto también se debe especificar
20 la posición del Do central.  Los parámetros posicionales están en
21 relación con la tercera línea del pentagrama, los números
22 positivos desplazan hacia arriba, contando una unidad por cada
23 línea y espacio.  El valor de @code{clefOctavation} se
24 establecería normalmente a 7, -7, 15 or -15, pero son válidos
25 otros valores.
26
27 Cuando se produce un cambio de clave en el salto de línea se
28 imprime la clave nueva tanto al final de la línea anterior como al
29 principio de la nueva, de forma predeterminada.  Si no se necesita
30 la clave de advertencia al final de la línea anterior, se puede
31 quitar estableciendo el valor de la propiedad
32 @code{explicitClefVisibility} de @code{Staff}, a
33 @code{end-of-line-invisible}.  El comportamiento predeterminado se
34 puede recuperar con @code{\\unset Staff.explicitClefVisibility}.
35
36 Los siguientes ejemplos muestran las posibilidades cuando se
37 ajustan estas propiedades manualmente.  En la primera línea, los
38 cambios manuales preservan el posicionamiento relativo estándar de
39 las claves y las notas, pero no lo hacen en la segunda línea.
40 "
41   
42   doctitlede = "Eigenschaften des Schlüssels optimieren"
43   texidocde = "
44 Der Befehl @code{\\clef \"treble_8\"} ist gleichbedeutend mit einem
45 expliziten Setzen der Eigenschaften von @code{clefGlyph},
46 @code{clefPosition} (welche die vertikale Position des Schlüssels bestimmt),
47 @code{middleCPosition} und @code{clefOctavation}.  Ein Schlüssel wird
48 ausgegeben, wenn eine der Eigenschaften außer @code{middleCPosition} sich
49 ändert.
50
51 Eine Änderung des Schriftzeichens (Glyph), der Schlüsselposition oder der
52 Oktavierung selber ändert noch nicht die Position der darauf folgenden Noten
53 auf dem System: das geschieht nur, wenn auch die Position des
54 eingestrichenen@tie{}C (middleCPosition) angegeben wird.  Die
55 Positionsparameter sind relativ zur Mittellinie des Systems, dabei versetzen
56 positive Zahlen die Position nach oben, jeweils eine Zahl für jede Linie
57 plus Zwischenraum.  Der @code{clefOctavation}-Wert ist normalerweise auf 7,
58 -7, 15 oder -15 gesetzt, aber auch andere Werte sind gültig.
59
60 Wenn ein Schlüsselwechsel an einem Zeilenwechsel geschieht, wird das neue
61 Symbol sowohl am Ende der alten Zeilen als auch am Anfang der neuen Zeile
62 ausgegeben.  Wenn der Warnungs-Schlüssel am Ende der alten Zeile nicht
63 erforderlich ist, kann er unterdrückt werden, indem die
64 @code{explicitClefVisibility}-Eigenschaft des @code{Staff}-Kontextes auf den
65 Wert @code{end-of-line-invisible} gesetzt wird.  Das Standardverhalten kann
66 mit @code{\\unset Staff.explicitClefVisibility} wieder hergestellt werden.
67
68 Die folgenden Beispiele zeigen die Möglichkeiten, wenn man diese
69 Eigenschaften manuell setzt.  Auf der ersten Zeile erhalten die manuellen
70 Änderungen die ursprüngliche relative Positionierung von Schlüssel und
71 Noten, auf der zweiten Zeile nicht.
72 "
73
74   texidoc = "
75 The command @code{\\clef \"treble_8\"} is equivalent to setting
76 @code{clefGlyph}, @code{clefPosition} (which controls the vertical
77 position of the clef), @code{middleCPosition} and
78 @code{clefOctavation}. A clef is printed when any of the properties
79 except @code{middleCPosition} are changed.
80
81
82 Note that changing the glyph, the position of the clef, or the
83 octavation does not in itself change the position of subsequent notes
84 on the staff: the position of middle C must also be specified to do
85 this. The positional parameters are relative to the staff center line,
86 positive numbers displacing upwards, counting one for each line and
87 space. The @code{clefOctavation} value would normally be set to 7, -7,
88 15 or -15, but other values are valid.
89
90
91 When a clef change takes place at a line break the new clef symbol is
92 printed at both the end of the previous line and the beginning of the
93 new line by default. If the warning clef at the end of the previous
94 line is not required it can be suppressed by setting the @code{Staff}
95 property @code{explicitClefVisibility} to the value
96 @code{end-of-line-invisible}. The default behavior can be recovered
97 with  @code{\\unset Staff.explicitClefVisibility}.
98
99 The following examples show the possibilities when setting these
100 properties manually. On the first line, the manual changes preserve the
101 standard relative positioning of clefs and notes, whereas on the second
102 line, they do not. 
103
104 "
105   doctitle = "Tweaking clef properties"
106 } % begin verbatim
107
108 \layout { ragged-right = ##t }
109
110 {
111   % The default treble clef
112   c'1
113   % The standard bass clef
114   \set Staff.clefGlyph = #"clefs.F"
115   \set Staff.clefPosition = #2
116   \set Staff.middleCPosition = #6
117   c'1
118   % The baritone clef
119   \set Staff.clefGlyph = #"clefs.C"
120   \set Staff.clefPosition = #4
121   \set Staff.middleCPosition = #4
122   c'1
123   % The standard choral tenor clef
124   \set Staff.clefGlyph = #"clefs.G"
125   \set Staff.clefPosition = #-2
126   \set Staff.clefOctavation = #-7
127   \set Staff.middleCPosition = #1
128   c'1
129   % A non-standard clef
130   \set Staff.clefPosition = #0
131   \set Staff.clefOctavation = #0
132   \set Staff.middleCPosition = #-4
133   c'1 \break
134
135   % The following clef changes do not preserve
136   % the normal relationship between notes and clefs:
137
138   \set Staff.clefGlyph = #"clefs.F"
139   \set Staff.clefPosition = #2
140   c'1
141   \set Staff.clefGlyph = #"clefs.G"
142   c'1
143   \set Staff.clefGlyph = #"clefs.C"
144   c'1
145   \set Staff.clefOctavation = #7
146   c'1
147   \set Staff.clefOctavation = #0
148   \set Staff.clefPosition = #0
149   c'1
150   
151   % Return to the normal clef:
152
153   \set Staff.middleCPosition = #0
154   c'1
155 }
156