lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add tab-tie-follow-engraver (issue2723043)


From: marc
Subject: Re: Add tab-tie-follow-engraver (issue2723043)
Date: Sun, 28 Nov 2010 15:42:47 +0000

Just some remarks about the harmonic detection.

Regards,

Marc


http://codereview.appspot.com/2723043/diff/109001/scm/tablature.scm
File scm/tablature.scm (right):

http://codereview.appspot.com/2723043/diff/109001/scm/tablature.scm#newcode296
scm/tablature.scm:296: (harmonic (eq? (ly:grob-property grob 'style #f)
'harmonic))
I am not sure whether this approach is sane enough;
I would at least include mixed-harmonic, too.

When I worked on this, I used a different function:

(define (is-harmonic? grob)
  (let ((articulations (ly:event-property (event-cause grob)
'articulations))
        (harmonic-found #f))
    (for-each (lambda (art)
                (if (ly:in-event-class? art 'harmonic-event)
                    (set! harmonic-found #t)))
              articulations)
    harmonic-found))

This seems to work regardless of the user's choice of
harmonic display style.

http://codereview.appspot.com/2723043/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]