]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/fretboards-alternate-tables.ly
Change stringTunings from list of semitones to list of pitches
[lilypond.git] / Documentation / snippets / fretboards-alternate-tables.ly
index 25b9b07cc176870bce60a0a6fa83b86306c52fbe..1e65517d7fcb8717ab6227609eddbe28be8f351b 100644 (file)
@@ -2,9 +2,28 @@
 % generated from Documentation/snippets/new
 % This file is in the public domain.
 %% Note: this file works from version 2.13.36
-\version "2.13.36"
+\version "2.13.46"
 
 \header {
+%% Translation of GIT committish: a874fda3641c9e02f61be5c41b215b8304b8ed00
+
+  texidoces = "
+Se pueden crear tablas alternativas de diagramas de posiciones.  Se
+utilizarían para tener diagramas altenativos para un acorde dado.
+
+Para usar una tabla alternativa de diagramas de posiciones, se debe
+crear la tabla primero.  Después se añaden los diagramas a la tabla.
+
+La tabla de diagramas de posiciones que se crea puede estar vacía o se
+puede copiar a partir de una tabla existente.
+
+La tabla a usar en la impresión de de los diagramas predefinidos se
+selecciona por medio de la propiedad @code{\\predefinedDiagramTable}.
+
+"
+
+  doctitlees = "Tablas alternativas de diagramas de posiciones"
+
   lsrtags = "fretted-strings"
 
   texidoc = "
@@ -14,6 +33,9 @@ order to have alternate fretboards for a given chord.
 In order to use an alternate fretboard table, the table must first
 be created.  Fretboards are then added to the table.
 
+The created fretboard table can be blank, or it can be copied
+from an existing table.
+
 The table to be used in displaying predefined fretboards is selected
 by the property @code{\\predefinedDiagramTable}.
 "
@@ -24,15 +46,19 @@ by the property @code{\\predefinedDiagramTable}.
 
 \include "predefined-guitar-fretboards.ly"
 
-#(define custom-fretboard-table-one (make-hash-table 101))
+% Make a blank new fretboard table
+#(define custom-fretboard-table-one (make-fretboard-table))
 
-#(define custom-fretboard-table-two (make-hash-table 101))
+% Make a new fretboard table as a copy of default-fret-table
+#(define custom-fretboard-table-two (make-fretboard-table default-fret-table))
 
+% Add a chord to custom-fretboard-table-one
 \storePredefinedDiagram #custom-fretboard-table-one
                         \chordmode{c}
                         #guitar-tuning
                         "3-(;3;5;5;5;3-);"
 
+% Add a chord to custom-fretboard-table-two
 \storePredefinedDiagram #custom-fretboard-table-two
                         \chordmode{c}
                         #guitar-tuning
@@ -40,27 +66,34 @@ by the property @code{\\predefinedDiagramTable}.
 
 <<
   \chords {
-    c1 |
-    c1 |
-    c1
+    c1 | d1 |
+    c1 | d1 |
+    c1 | d1 |
   }
   \new FretBoards {
     \chordmode {
       \set predefinedDiagramTable = #default-fret-table
-      c1
+      c1 | d1 |
       \set predefinedDiagramTable = #custom-fretboard-table-one
-      c1
+      c1 | d1 |
       \set predefinedDiagramTable = #custom-fretboard-table-two
-      c1
+      c1 | d1 |
     }
   }
   \new Staff {
     \clef "treble_8"
-    \chordmode {
-      c1 |
-      c1 |
-      c1
-    }
+    <<
+      \chordmode {
+        c1 | d1 |
+        c1 | d1 |
+        c1 | d1 |
+      }
+      {
+        s1_\markup "Default table" | s1 |
+        s1_\markup \column {"New table" "from empty"} | s1 |
+        s1_\markup \column {"New table" "from default"} | s1 |
+      }
+    >>
   }
 >>