]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/non-traditional-key-signatures.ly
Modify autobeam and grouping properties
[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.0
5 \version "2.13.4"
6
7 \header {
8 %% Translation of GIT committish: da7ce7d651c3a0d1bfed695f6e952975937a1c79
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 %% Translation of GIT committish: d96023d8792c8af202c7cb8508010c0d3648899d
37   doctitlede = "Untypische Tonarten"
38   texidocde = "
39 Der üblicherweise benutzte @code{\\key}-Befehl setzt die
40 @code{keySignature}-Eigenschaft im @code{Staff}-Kontext.
41
42 Um untypische Tonartenvorzeichen zu erstellen, muss man diese Eigenschaft
43 direkt setzen.  Das Format für den Befehl ist eine Liste: @code{ \\set
44 Staff.keySignature = #`(((Oktave . Schritt) . Alteration) ((Oktave
45 . Schritt) . Alteration) ...)} wobei für jedes Element in der Liste
46 @code{Oktave} die Oktave angibt (0@tie{}ist die Oktave vom
47 eingestrichenen@tie{}C bis zum eingestrichenen@tie{}H), @code{Schritt} gibt
48 die Note innerhalb der Oktave an (0@tie{}heißt@tie{}C und
49 6@tie{}heißt@tie{}H), und @code{Alteration} ist @code{,SHARP ,FLAT
50 ,DOUBLE-SHARP} usw.  (Beachte das beginnende Komma.)
51
52 Alternativ kann auch jedes Element der Liste mit dem allgemeineren Format
53 @code{(Schritt . Alteration)} gesetzt werden, wobei dann die Einstellungen
54 für alle Oktaven gelten.
55
56 Hier ein Beispiel einer möglichen Tonart für eine Ganztonleiter:
57 "
58
59   lsrtags = "pitches, staff-notation"
60   texidoc = "
61 The commonly used @code{\\key} command sets the @code{keySignature}
62 property, in the @code{Staff} context.
63
64 To create non-standard key signatures, set this property directly.  The
65 format of this command is a list:
66
67 @code{\\set Staff.keySignature = #`(((octave . step) . alter) ((octave
68 . step) . alter) ...)} where, for each element in the list,
69 @code{octave} specifies the octave (0@tie{}being the octave from
70 middle@tie{}C to the B above), @code{step} specifies the note within the
71 octave (0@tie{}means@tie{}C and 6@tie{}means@tie{}B), and @code{alter} is
72 @code{,SHARP ,FLAT ,DOUBLE-SHARP} etc.  (Note the leading comma.)
73
74 Alternatively, for each item in the list, using the more concise format
75 @code{(step . alter)} specifies that the same alteration should hold in all
76 octaves.
77
78 Here is an example of a possible key signature for generating a whole-tone
79 scale:
80 "
81   doctitle = "Non-traditional key signatures"
82 } % begin verbatim
83
84
85 \relative c' {
86   \set Staff.keySignature = #`(((0 . 6) . ,FLAT)
87                                ((0 . 5) . ,FLAT)
88                                ((0 . 3) . ,SHARP))
89   c4 d e fis
90   aes4 bes c2
91 }
92