--- /dev/null
+% german-chords.ly:
+% german/norwegian/danish?
+
+
+#(define (pitch->chord-name-text-banter pitch)
+ (if (equal? (cdr pitch) '(6 0))
+ '("H")
+ (if (equal? (cdr pitch) '(6 -1)) '("B")
+ (pitch->text pitch))))
+
+#(define (pitch->note-name-text-banter pitch)
+ (if (equal? (cdr pitch) '(6 -1)) '("b")
+ (cons
+ (string-append
+ (if (equal? (cadr pitch) 6) "h"
+ (make-string 1 (integer->char (+ (modulo (+ (cadr pitch) 2) 7) 97))))
+ (case (caddr pitch)
+ ((-1) "eses")
+ ((-1) "es")
+ ((0) "")
+ ((1) "is")
+ ((2) "isis")))
+ '())))
+
+
+
+\score {
+ <
+ \context ChordNames \chords { b1/+b bes/+bes bis/+bis }
+ \notes\transpose c'' \chords { b1/+b bes/+bes bis/+bis }
+ >
+ \paper {
+ linewidth = -1;
+ }
+}
+
\ No newline at end of file
(string-append "accidentals-"
(number->string (caddr pitch)))))))))))))))
+;;; Hooks to override chord names and note names,
+;;; see input/tricks/german-chords.ly
+
+(define (pitch->text-banter pitch)
+ (pitch->text pitch))
+
+(define (pitch->chord-name-text-banter pitch)
+ (pitch->text-banter))
+
+(define (pitch->note-name-text-banter pitch)
+ (pitch->text-banter))
+
(define (step->text pitch)
(string-append
(number->string (+ (cadr pitch) (if (= (car pitch) 0) 1 8)))
((0) "")
((1) "+")
((2) "++"))))
-
-(define (pitch->text-banter pitch)
- (pitch->text pitch))
(define (step->text-banter pitch)
(if (= (cadr pitch) 6)
(define (chord::inner-name-banter tonic user-name additions subtractions base-and-inversion)
(apply append
'(rows)
- (pitch->text-banter tonic)
+ (pitch->chord-name-text-banter tonic)
(if user-name user-name '())
;; why does list->string not work, format seems only hope...
(if (and (string-match "super" (format "~s" user-name))
(cdr base-and-inversion)))
(cons "/" (append
(if (car base-and-inversion)
- (pitch->text
+ (pitch->note-name-text-banter
(car base-and-inversion))
- (pitch->text
+ (pitch->note-name-text-banter
(cdr base-and-inversion)))
'()))
'())