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