From: Marc Hohl Date: Fri, 17 Jan 2014 17:22:24 +0000 (+0100) Subject: TabNoteHead.style = #'slash supported. X-Git-Tag: release/2.19.2-1~13 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e2561c80134f16663c1a05e081d3719d80f3114f;p=lilypond.git TabNoteHead.style = #'slash supported. --- diff --git a/ly/property-init.ly b/ly/property-init.ly index 42a1d5100c..852dbcee9e 100644 --- a/ly/property-init.ly +++ b/ly/property-init.ly @@ -273,12 +273,14 @@ unHideNotes = { improvisationOn = { \set squashedPosition = #0 \override NoteHead.style = #'slash + \override TabNoteHead.style = #'slash \override Accidental.stencil = ##f \override AccidentalCautionary.stencil = ##f } improvisationOff = { \unset squashedPosition \revert NoteHead.style + \revert TabNoteHead.style \revert Accidental.stencil \revert AccidentalCautionary.stencil } diff --git a/scm/tablature.scm b/scm/tablature.scm index 0cd113fbbc..668bf2faa3 100644 --- a/scm/tablature.scm +++ b/scm/tablature.scm @@ -23,17 +23,18 @@ (let ((style (ly:grob-property grob 'style))) (case style - ((cross) "2cross")))) + ((cross) "2cross") + ((slash) "2slash") + (else #f)))) ;; ensure we only call note head callback when -;; 'style = 'cross +;; style is set to a known value (define-public (tab-note-head::whiteout-if-style-set grob) (let ((style (ly:grob-property grob 'style))) - (if (and (symbol? style) - (eq? style 'cross)) - (stencil-whiteout (ly:note-head::print grob)) - (tab-note-head::print grob)))) + (case style + ((cross slash) (stencil-whiteout (ly:note-head::print grob))) + (else (tab-note-head::print grob))))) ;; definitions for the "moderntab" clef: ;; the "moderntab" clef will be added to the list of known clefs,