]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/tablature.scm
Fix #1660: Make \harmonicsOn work in tablature.
[lilypond.git] / scm / tablature.scm
index f4c67bebdc3f1baf5ecb0d40ee77b507760b0270..c26af257c8df13b1c14161a7314a6c201ffd99a7 100644 (file)
 (define-public (tab-note-head::print grob)
   (define (is-harmonic? grob)
     (let ((arts (ly:event-property (event-cause grob) 'articulations)))
-      (not (null? (filter (lambda (a)
-                           (ly:in-event-class? a 'harmonic-event))
-                         arts)))))
+      (or (pair? (filter (lambda (a)
+                          (ly:in-event-class? a 'harmonic-event))
+                         arts))
+         (eq? (ly:grob-property grob 'style) 'harmonic))))
 
   (let* ((cautionary (ly:grob-property grob 'display-cautionary #f))
         (details (ly:grob-property grob 'details '()))