(define (natural-chord-alteration p)
"Return the natural alteration for step P."
(if (= (ly:pitch-steps p) 6)
- -1
+ FLAT
0))
(define-public (alteration->text-accidental-markup alteration)
(make-smaller-markup
(make-raise-markup
- (if (= alteration -1)
+ (if (= alteration FLAT)
0.3
0.6)
(make-musicglyph-markup
(define (is-req-chord? m)
(and
(memq 'event-chord (ly:get-mus-property m 'types))
- (not (equal? (ly:make-moment 0 1) (ly:get-music-length m)))))
+ (not (equal? ZERO-MOMENT (ly:music-length m)))))
(let* ((elts (filter is-req-chord? (ly:get-mus-property seq 'elements)))
(alist (map chord-to-exception-entry elts)))