]> git.donarmstrong.com Git - lilypond.git/commitdiff
Adjust FretBoards so all orientations share a common location
authorCarl Sorensen <c_sorensen@byu.edu>
Tue, 31 Mar 2009 19:10:08 +0000 (13:10 -0600)
committerNeil Puttock <n.puttock@gmail.com>
Mon, 20 Jul 2009 19:03:59 +0000 (20:03 +0100)
(cherry picked from commit 9e19a8c11a89a330ae20c077b01719d233790eed)

input/regression/fret-diagram-origins.ly
scm/fret-diagrams.scm

index afba595b17ed94adacea9de62ae06c2fe4e27196..4042bf5ddd957a263f628a22c2b985968e37dc0e 100644 (file)
@@ -30,9 +30,9 @@ of the topmost fret or string.
   }
 
   \new Voice {
-    c1 |
-    c1 |
-    c
+    c'1 |
+    c'1 |
+    c'
  }
 >>
 
index 70390d23148ca24e4a08503e841235180d3fae59..ce627b50fe137d2e218148aa101a61c1ab103d40 100644 (file)
@@ -286,7 +286,8 @@ with magnification @var{mag} of the string @var{text}."
       in stencil coordinate system."
       (cond
         ((eq? orientation 'landscape)
-         (cons fret-coordinate string-coordinate))
+         (cons fret-coordinate
+               (- string-coordinate (1- string-count))))
         ((eq? orientation 'opposing-landscape)
          (cons (- fret-coordinate) (- string-coordinate)))
         (else