]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/fret-diagram-origins.ly
Add regression test for fretboard orientation origins
[lilypond.git] / input / regression / fret-diagram-origins.ly
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
+ }
+>>
+
+