* scm/chords-ignatzek.scm: new file.
2003-02-15 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ * scm/chords-ignatzek.scm (ignatzek-chord-names): robustness fix.
+
* lily/include/*.hh: string() -> to_string()
* scm/chords-ignatzek.scm: new file.
(define (filter-main-name p)
"The main name: don't print anything for natural 5 or 3."
(if
- (and (is-natural-alteration? p)
+ (or (not (ly:pitch? p))
+ (and (is-natural-alteration? p)
(or (= (pitch-step p) 5)
- (= (pitch-step p) 3)))
+ (= (pitch-step p) 3))))
'()
(list (name-step p))
))
;; etc. are named by the top pitch, without any further
;; alterations.
(if (and
+ (ly:pitch? main-name)
(= 7 (pitch-step main-name))
(is-natural-alteration? main-name)
(pair? (remove-uptil-step 7 alterations))