]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add regression test for fretboard orientation origins
authorCarl Sorensen <c_sorensen@byu.edu>
Tue, 31 Mar 2009 03:22:43 +0000 (21:22 -0600)
committerNeil Puttock <n.puttock@gmail.com>
Mon, 20 Jul 2009 19:03:08 +0000 (20:03 +0100)
(cherry picked from commit 86f110f6affff55d055bdeaf4495a1e243f3b3a4)

input/regression/fret-diagram-origins.ly [new file with mode: 0644]

diff --git a/input/regression/fret-diagram-origins.ly b/input/regression/fret-diagram-origins.ly
new file mode 100644 (file)
index 0000000..afba595
--- /dev/null
@@ -0,0 +1,39 @@
+\version "2.12.0"
+
+\header {
+  texidoc="
+Fret diagrams of different orientation should share a common origin
+of the topmost fret or string.
+
+"
+}
+
+\include "predefined-guitar-fretboards.ly"
+\layout { ragged-right = ##t }
+<<
+  \chords {
+    c1 |
+    c1 |
+    c1
+  }
+
+  \new FretBoards {
+    \chordmode{
+    c1 |
+    \override FretBoard #'fret-diagram-details
+       #'orientation = #'landscape
+    c1 |
+    \override FretBoard #'fret-diagram-details
+       #'orientation = #'opposing-landscape
+    c1
+    }
+  }
+
+  \new Voice {
+    c1 |
+    c1 |
+    c
+ }
+>>
+
+