]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/defining-predefined-fretboards-for-other-instruments.ly
Docs: update LSR, mostly fixing German texidocs
[lilypond.git] / input / lsr / defining-predefined-fretboards-for-other-instruments.ly
1 %% Do not edit this file; it is auto-generated from input/new
2 %% This file is in the public domain.
3 \version "2.12.0"
4 \header {
5   texidoces = "
6
7 Se pueden añadir diagramas de posiciones predefinidas para
8 instrumentos nuevos además de los estándar que se usan para la
9 guitarra.  Este archivo muestra cómo se hace, definiendo una afinación
10 nueva y unas cuantas posiciones para el cuatro venezolano.
11
12 Este archivo también muestra cómo se pueden incluir las digitaciones
13 en los acordes que se usan como puntos de referencia para la búsqueda
14 de acordes en la tabla, y mostrarse en el diagrama de posiciones y la
15 tablatura @code{TabStaff}, pero no en la música.
16
17 Estas posiciones no se pueden transportar porque contienen información
18 de las cuerdas.  Hay planes para corregir esto en un futuro.
19
20 "
21   doctitlees = "Definición de posiciones predefinidas para otros instrumentos"
22
23 %% Translation of GIT committish: cd4950757ab1ab6c89805b0b7c978bfca034f940
24
25   texidocfr = "
26 La liste des diagrammes standards prédéfinis pour la guitare peut être
27  augmentée d'autres définitions spécifiques à d'autres instruments.  
28 Voici comment définir un nouvel accordage ainsi que quelques diagrammes 
29 prédéfinis pour le @qq{cuatro vénézuélien}.
30
31 Cet exemple illustre aussi la manière d'ajouter des doigtés aux 
32 accords ; ils serviront de référence pour la boucle d'accord et seront 
33 indiqués dans les diagrammes et le @code{TabStaff}, mais pas dans la musique. 
34
35 Ces diagrammes ne peuvent pas être transposés, dans la mesure où ils 
36 contiennent des informations sur les cordes.  Ceci est amené à évoluer.
37
38 "
39   doctitlefr = "Création de diagrammes de fret prédéfinis pour d'autres instruments"
40
41   lsrtags = "fretted-strings"
42   texidoc = "Predefined fret diagrams can be added for new instruments
43 in addition to the standards used for guitar.  This file shows how
44 this is done by defining a new string-tuning and a few predefined
45 fretboards for the Venezuelan cuatro.
46
47 This file also shows how fingerings can be included in the chords
48 used as reference points for the chord lookup, and displayed in 
49 the fret diagram and the @code{TabStaff}, but not the music.
50
51 These fretboards are not transposable because they contain string
52 information.  This is planned to be corrected in the future.
53
54 "
55   doctitle = "Defining predefined fretboards for other instruments"
56 } % begin verbatim
57
58 % add FretBoards for the Cuatro
59 %   Note: This section could be put into a separate file
60 %      predefined-cuatro-fretboards.ly
61 %      and \included into each of your compositions
62
63 cuatroTuning = #'(11 18 14 9)
64
65 dSix = { <a\4 b\1 d\3 fis\2> }
66 dMajor = { <a\4 d\1 d\3 fis \2> }
67 aMajSeven = { <a\4 cis\1 e\3 g\2> }
68 dMajSeven = { <a\4 c\1 d\3 fis\2> }
69 gMajor = { <b\4 b\1 d\3 g\2> }
70
71 \storePredefinedDiagram \dSix
72                         #cuatroTuning
73                         #"o;o;o;o;"
74 \storePredefinedDiagram \dMajor
75                         #cuatroTuning
76                         #"o;o;o;3-3;"
77 \storePredefinedDiagram \aMajSeven
78                         #cuatroTuning
79                         #"o;2-2;1-1;2-3;"
80 \storePredefinedDiagram \dMajSeven
81                         #cuatroTuning
82                         #"o;o;o;1-1;"
83 \storePredefinedDiagram \gMajor
84                         #cuatroTuning
85                         #"2-2;o;1-1;o;"
86
87 % end of potential include file /predefined-cuatro-fretboards.ly
88
89
90 #(set-global-staff-size 16)
91
92 primerosNames = \chordmode {
93   d:6 d a:maj7 d:maj7 
94   g
95 }
96 primeros = {
97   \dSix \dMajor \aMajSeven \dMajSeven
98   \gMajor
99 }
100
101 \score {
102   <<
103     \new ChordNames {
104       \set chordChanges = ##t
105       \primerosNames
106     }
107
108     \new Staff {
109       \new Voice \with {
110         \remove "New_fingering_engraver"
111       } 
112       \relative c'' {
113         \primeros
114       }
115     }
116
117     \new FretBoards {
118       \set stringTunings = #cuatroTuning
119       \override FretBoard
120         #'(fret-diagram-details string-count) = #'4
121       \override FretBoard
122         #'(fret-diagram-details finger-code) = #'in-dot
123       \primeros
124     }
125
126     \new TabStaff \relative c'' {
127       \set TabStaff.stringTunings = #cuatroTuning
128       \primeros
129     }
130     
131   >>
132
133   \layout { 
134     \context {
135       \Score
136       \override SpacingSpanner
137         #'base-shortest-duration = #(ly:make-moment 1 16)
138     }
139   }
140   \midi { }
141 }