4 % german/norwegian/danish?
6 % To get Bb instead of B, use
7 % \include "german-chords.ly"
10 #(define german-Bb #f)
12 #(define (pitch->chord-name-text-banter pitch steps)
13 (let ((dopitch (if (member (cdr pitch) '((6 -1) (6 -2)))
14 (list 7 (+ (if german-Bb 0 1) (caddr pitch)))
18 (list-ref '("C" "D" "E" "F" "G" "A" "H" "B") (car dopitch))
19 (accidental->text-super (cadr dopitch))
26 #(define (pitch->note-name-text-banter pitch)
27 (let ((dopitch (if (member (cdr pitch) '((6 -1) (6 -2)))
28 (list 7 (+ 1 (caddr pitch)))
33 (list-ref '("c" "d" "e" "f" "g" "a" "h" "b") (car dopitch))
34 (if (or (equal? (car dopitch) 2) (equal? (car dopitch) 5))
35 (list-ref '( "ses" "s" "" "is" "isis") (+ 2 (cadr dopitch)))
36 (list-ref '("eses" "es" "" "is" "isis") (+ 2 (cadr dopitch)))