X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Ftablature.scm;h=a3efa78670d098a869b9520f384f817ee522a7ee;hb=cc0b315c4f4d2fef6e95d5b64bf56c270a7e6a75;hp=ae617bd47ffef752139e4cc20f2d320f983f2ed0;hpb=893b347387eb61f602cf44d4db244cda429c2328;p=lilypond.git diff --git a/scm/tablature.scm b/scm/tablature.scm index ae617bd47f..a3efa78670 100644 --- a/scm/tablature.scm +++ b/scm/tablature.scm @@ -1,6 +1,6 @@ ;;;; This file is part of LilyPond, the GNU music typesetter. ;;;; -;;;; Copyright (C) 2009 Marc Hohl +;;;; Copyright (C) 2009--2010 Marc Hohl ;;;; ;;;; LilyPond is free software: you can redistribute it and/or modify ;;;; it under the terms of the GNU General Public License as published by @@ -99,7 +99,9 @@ (if (string=? glyph "markup.moderntab") ;; if it is "moderntab", we'll draw it (let* ((staff-symbol (ly:grob-object grob 'staff-symbol)) - (line-count (ly:grob-property staff-symbol 'line-count)) + (line-count (if (ly:grob? staff-symbol) + (ly:grob-property staff-symbol 'line-count) + 0)) (staff-space (ly:staff-symbol-staff-space grob))) (grob-interpret-markup grob (make-customTabClef-markup line-count @@ -218,13 +220,15 @@ (tab-note-head-parenthesized (assoc-get 'parenthesize repeat-tied-properties #t))) (if tab-note-head-visible - ;; tab note head is visible - (if tab-note-head-parenthesized + ;; tab note head is visible + (if tab-note-head-parenthesized (ly:grob-set-property! tied-tab-note-head 'stencil (lambda (grob) (parenthesize-tab-note-head grob)))) ;; tab note head is invisible - (ly:grob-set-property! tied-tab-note-head 'transparent #t)))) + (begin + (ly:grob-set-property! tied-tab-note-head 'transparent #t) + (ly:grob-set-property! tied-tab-note-head 'whiteout #f))))) ;; the slurs should not be too far apart from the corresponding fret number, so ;; we move the slur towards the TabNoteHeads: