]> git.donarmstrong.com Git - lilypond.git/commitdiff
TabNoteHead.style = #'slash supported.
authorMarc Hohl <marc@hohlart.de>
Fri, 17 Jan 2014 17:22:24 +0000 (18:22 +0100)
committerMarc Hohl <marc@hohlart.de>
Fri, 24 Jan 2014 17:00:27 +0000 (18:00 +0100)
ly/property-init.ly
scm/tablature.scm

index 42a1d5100c8c2732ed72ac729fa0fe90e8124fe0..852dbcee9ebaf5cf6d55f874b561114c4c2fe294 100644 (file)
@@ -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
 }
index 0cd113fbbcbe5e38f80a0b228c89f0cf6fd1aa75..668bf2faa3a1b390bc13f2552859fac18cbf1b9b 100644 (file)
   (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,