]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fretboards: markup strings in dot positions
authorThomas Morley <thomasmorley65@gmail.com>
Mon, 11 May 2015 20:43:51 +0000 (22:43 +0200)
committerThomas Morley <thomasmorley65@gmail.com>
Wed, 20 May 2015 20:13:29 +0000 (22:13 +0200)
Issue 4120

Fixes disappeared strings, restores the behaviour before the fix
for Issue 2752

Does not scale those strings, though, in order to fix the regression first
and do other feature requests for issue 4120 in a follow up.

scm/fret-diagrams.scm

index 74ab65fedd0788fb29e79e712a8d4afec45431f8..f8ccb59a111886ce250590d822c6f7bb9624aa6e 100644 (file)
@@ -109,11 +109,12 @@ to end-point."
                   (car this-list)
                 ;; fret
                   (- (second this-list) base-fret)
-                ;; finger
-                  (if (or (null? (cddr this-list))
-                        (not (number? (caddr this-list))))
-                      '()
-                      (third this-list))
+                ;; finger-number or markup
+                  (if (and (not (null? (cddr this-list)))
+                           (or (markup? (caddr this-list))
+                               (number? (caddr this-list))))
+                      (third this-list)
+                      '())
                 ;; inverted
                   (dot-is-inverted this-list)
                 ;; parenthesis