]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/non-traditional-key-signatures.ly
4bea0db9d26b4251bddbe10c20207b810eaad08f
[lilypond.git] / Documentation / snippets / non-traditional-key-signatures.ly
1 % Do not edit this file; it is automatically
2 % generated from Documentation/snippets/new
3 % This file is in the public domain.
4 %% Note: this file works from version 2.13.36
5 \version "2.13.40"
6
7 \header {
8 %% Translation of GIT committish: 5160eccb26cee0bfd802d844233e4a8d795a1e94
9   doctitlees = "Armaduras de tonalidad no tradicionales"
10   texidoces = "
11
12 La muy utilizada instrucción @code{\\key} establece la propiedad
13 @code{keySignature} property, dentro del contexto @code{Staff}.
14
15 Para crear armaduras de tonalidad no estándar, ajuste esta
16 propiedad directamente.  El formato de esta instrucción es una
17 lista:
18
19 @code{\\set Staff.keySignature = #`(((octava . paso) . alteración)
20 ((octava . paso) . alteración) ...)} donde, para cada elemento
21 dentro de la lista, @code{octava} especifica la octava
22 (siendo@tie{}cero la octava desde el Do@tie{}central hasta el Si
23 por encima), @code{paso} especifica la nota dentro de la octava
24 (cero@tie{}significa@tie{}Do y 6@tie{}significa@tie{}Si), y
25 @code{alteración} es @code{,SHARP ,FLAT ,DOUBLE-SHARP}
26 etc. (observe la coma precedente.)
27
28 De forma alternativa, para cada elemento de la lista el uso del
29 formato más conciso @code{(paso . alteración)} especifica que la
30 misma alteración debe estar en todas las octavas.
31
32 He aquí un ejemplo de una posible armadura para generar una escala
33 exátona:
34 "
35
36
37 %% Translation of GIT committish: 0a868be38a775ecb1ef935b079000cebbc64de40
38   doctitlede = "Untypische Tonarten"
39   texidocde = "
40 Der üblicherweise benutzte @code{\\key}-Befehl setzt die
41 @code{keySignature}-Eigenschaft im @code{Staff}-Kontext.
42
43 Um untypische Tonartenvorzeichen zu erstellen, muss man diese Eigenschaft
44 direkt setzen.  Das Format für den Befehl ist eine Liste: @code{ \\set
45 Staff.keySignature = #`(((Oktave . Schritt) . Alteration) ((Oktave
46 . Schritt) . Alteration) ...)} wobei für jedes Element in der Liste
47 @code{Oktave} die Oktave angibt (0@tie{}ist die Oktave vom
48 eingestrichenen@tie{}C bis zum eingestrichenen@tie{}H), @code{Schritt} gibt
49 die Note innerhalb der Oktave an (0@tie{}heißt@tie{}C und
50 6@tie{}heißt@tie{}H), und @code{Alteration} ist @code{,SHARP ,FLAT
51 ,DOUBLE-SHARP} usw.  (Beachte das beginnende Komma.)
52
53 Alternativ kann auch jedes Element der Liste mit dem allgemeineren Format
54 @code{(Schritt . Alteration)} gesetzt werden, wobei dann die Einstellungen
55 für alle Oktaven gelten.
56
57 Hier ein Beispiel einer möglichen Tonart für eine Ganztonleiter:
58 "
59
60 %% Translation of GIT committish: 4ab2514496ac3d88a9f3121a76f890c97cedcf4e
61   texidocfr = "
62 La commande @code{\\key} détermine la propriété @code{keySignature} d'un
63 contexte @code{Staff}.
64
65 Des armures inhabituelles peuvent être spécifiées en modifiant
66 directement cette propriété. Il s'agit en l'occurence de définir une
67 liste :
68
69 @code{\\set Staff.keySignature = #`(((octave . pas) . altération) ((octave
70 . pas) . altération) @dots{})}
71
72 dans laquelle, et pour chaque élément,
73 @code{octave} spécifie l'octave (0@tie{}pour celle allant du
74 do@tie{}médium au si supérieur), @code{pas} la note dans cette octave
75 (0@tie{}pour@tie{}do et 6@tie{}pour@tie{}si), et @code{altération} sera
76 @code{,SHARP ,FLAT ,DOUBLE-SHARP} etc.  (attention à la virgule en
77 préfixe).
78
79 Une formulation abrégée -- @code{(pas . altération)} -- signifie que
80 l'altération de l'élément en question sera valide quel que soit l'octave.
81
82
83 Voici, par exemple, comment générer une gamme par ton :
84
85 "
86   doctitlefr = "Armures inhabituelles"
87
88
89   lsrtags = "pitches, staff-notation"
90   texidoc = "
91 The commonly used @code{\\key} command sets the @code{keySignature}
92 property, in the @code{Staff} context.
93
94 To create non-standard key signatures, set this property directly.  The
95 format of this command is a list:
96
97 @code{\\set Staff.keySignature = #`(((octave . step) . alter) ((octave
98 . step) . alter) ...)} where, for each element in the list,
99 @code{octave} specifies the octave (0@tie{}being the octave from
100 middle@tie{}C to the B above), @code{step} specifies the note within the
101 octave (0@tie{}means@tie{}C and 6@tie{}means@tie{}B), and @code{alter} is
102 @code{,SHARP ,FLAT ,DOUBLE-SHARP} etc.  (Note the leading comma.)
103
104 Alternatively, for each item in the list, using the more concise format
105 @code{(step . alter)} specifies that the same alteration should hold in all
106 octaves.
107
108 Here is an example of a possible key signature for generating a whole-tone
109 scale:
110 "
111   doctitle = "Non-traditional key signatures"
112 } % begin verbatim
113
114
115 \relative c' {
116   \set Staff.keySignature = #`(((0 . 6) . ,FLAT)
117                                ((0 . 5) . ,FLAT)
118                                ((0 . 3) . ,SHARP))
119   c4 d e fis
120   aes4 bes c2
121 }
122