]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add regression test for open strings in tab from predefined diagrams
authorCarl Sorensen <c_sorensen@byu.edu>
Tue, 23 Nov 2010 00:04:26 +0000 (17:04 -0700)
committerCarl Sorensen <c_sorensen@byu.edu>
Tue, 23 Nov 2010 00:04:26 +0000 (17:04 -0700)
input/regression/tablature-fretboard-open-string.ly [new file with mode: 0644]

diff --git a/input/regression/tablature-fretboard-open-string.ly b/input/regression/tablature-fretboard-open-string.ly
new file mode 100644 (file)
index 0000000..f86dc7c
--- /dev/null
@@ -0,0 +1,41 @@
+\version "2.13.40"
+\header
+{
+  texidoc =
+  "Tablatures derived from stored fretboard diagrams display open strings
+as fret 0 in the tablature.  The tablature and fretboard should match."
+}
+
+#(define c-shape-fretboard-table (make-fretboard-table))
+
+\storePredefinedDiagram #c-shape-fretboard-table
+                         \chordmode{c}
+                         #guitar-tuning
+                         "x;3-3;2-2;o;1-1;o;"
+
+cShape = {
+   \set predefinedDiagramTable = #c-shape-fretboard-table
+}
+
+Chords = \chordmode {
+   \cShape
+   c,1 |
+}
+
+\score {
+     <<
+       \new ChordNames {
+            \Chords
+       }
+       \new FretBoards {
+         \Chords
+       }
+       \new Staff {
+         \clef "treble_8"
+         \Chords
+       }
+       \new TabStaff  {
+         \Chords
+       }
+     >>
+}