* ly/property-init.ly (harmonicsOn):
add TabNoteHead to override-head-style call
* scm/tablature.scm (is-harmonic?):
check grob property 'style for 'harmonic setting
harmonicsOn =
#(define-music-function (parser location) ()
(_i "Set the default note head style to a diamond-shaped style.")
- (override-head-style 'NoteHead 'harmonic))
+ (override-head-style '(NoteHead TabNoteHead) 'harmonic))
harmonicsOff = \defaultNoteHeads
harmonicNote =
#(define-music-function (parser location note) (ly:music?)
(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 '()))