]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/fretboards-alternate-tables.ly
205de64c42c3dfbbe735e6d674a6694ea4250778
[lilypond.git] / Documentation / snippets / fretboards-alternate-tables.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: 42cf5468694e6757494d4505ab9b6ea7bc591e59
9
10   texidoces = "
11 Se pueden crear tablas alternativas de diagramas de posiciones.  Se
12 utilizarían para tener diagramas altenativos para un acorde dado.
13
14 Para usar una tabla alternativa de diagramas de posiciones, se debe
15 crear la tabla primero.  Después se añaden los diagramas a la tabla.
16
17 La tabla de diagramas de posiciones que se crea puede estar vacía o se
18 puede copiar a partir de una tabla existente.
19
20 La tabla a usar en la impresión de de los diagramas predefinidos se
21 selecciona por medio de la propiedad @code{\\predefinedDiagramTable}.
22
23 "
24
25   doctitlees = "Tablas alternativas de diagramas de posiciones"
26
27   lsrtags = "fretted-strings"
28
29   texidoc = "
30 Alternate fretboard tables can be created.  These would be used in
31 order to have alternate fretboards for a given chord.
32
33 In order to use an alternate fretboard table, the table must first
34 be created.  Fretboards are then added to the table.
35
36 The created fretboard table can be blank, or it can be copied
37 from an existing table.
38
39 The table to be used in displaying predefined fretboards is selected
40 by the property @code{\\predefinedDiagramTable}.
41 "
42
43   doctitle = "Alternate fretboard tables"
44 } % begin verbatim
45
46
47 \include "predefined-guitar-fretboards.ly"
48
49 % Make a blank new fretboard table
50 #(define custom-fretboard-table-one (make-fretboard-table))
51
52 % Make a new fretboard table as a copy of default-fret-table
53 #(define custom-fretboard-table-two (make-fretboard-table default-fret-table))
54
55 % Add a chord to custom-fretboard-table-one
56 \storePredefinedDiagram #custom-fretboard-table-one
57                         \chordmode{c}
58                         #guitar-tuning
59                         "3-(;3;5;5;5;3-);"
60
61 % Add a chord to custom-fretboard-table-two
62 \storePredefinedDiagram #custom-fretboard-table-two
63                         \chordmode{c}
64                         #guitar-tuning
65                         "x;3;5;5;5;o;"
66
67 <<
68   \chords {
69     c1 | d1 |
70     c1 | d1 |
71     c1 | d1 |
72   }
73   \new FretBoards {
74     \chordmode {
75       \set predefinedDiagramTable = #default-fret-table
76       c1 | d1 |
77       \set predefinedDiagramTable = #custom-fretboard-table-one
78       c1 | d1 |
79       \set predefinedDiagramTable = #custom-fretboard-table-two
80       c1 | d1 |
81     }
82   }
83   \new Staff {
84     \clef "treble_8"
85     <<
86       \chordmode {
87         c1 | d1 |
88         c1 | d1 |
89         c1 | d1 |
90       }
91       {
92         s1_\markup "Default table" | s1 |
93         s1_\markup \column {"New table" "from empty"} | s1 |
94         s1_\markup \column {"New table" "from default"} | s1 |
95       }
96     >>
97   }
98 >>
99