From 943cf870ba4689447be1d79924b5d6d16bcc9267 Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 26 Mar 2002 23:25:27 +0000 Subject: [PATCH] lilypond-1.3.75 --- input/test/banter-chords.ly | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/input/test/banter-chords.ly b/input/test/banter-chords.ly index 642aaa8bae..ccd10d088f 100644 --- a/input/test/banter-chords.ly +++ b/input/test/banter-chords.ly @@ -16,24 +16,34 @@ TestedFeatures = "Banter named chords"; % when this file has been parsed... % { -#(set! note-names-alist - (append - '( - ; use these for German naming - ((6 . 0) . ("H" "")) - ((6 . -1) . ("B" ("feta-1" . ""))) - ) - note-names-alist)) -#(set! chord-names-alist +#;(define chord::names-alist-banter '()) +#(set! chord::names-alist-banter (append '( - (((0 . 0) (2 . -1) (4 . -1)) . ("m" . ("script" . "5-"))) + (((0 . 0) (2 . -1) (4 . -1)) . (("m" ("5-" . (type . "super"))))) ; Co iso Cm5-7- - ; urg, niet te pruimen - ; (((0 . 0) (2 . -1) (4 . -1) (6 . -2)) . ("" . ("feta-1" . "."))) - (((0 . 0) (2 . -1) (4 . -1) (6 . -2)) . ("" . ("script" . "o"))) + (((0 . 0) (2 . -1) (4 . -1) (6 . -2)) . ("o" (type "super"))) ))) + +% German note names: +% Urg, this will break again, in time +% Is this correct, anyway? + +#(define (pitch->text pitch) + (if (and (= (modulo (cadr pitch) 7) 6) + (= (caddr pitch) -1)) + (cons (make-string 1 (integer->char 66)) '()) + (cons + (if (= (modulo (cadr pitch) 7) 6) + (make-string 1 (integer->char 72)) + (make-string 1 (integer->char (+ (modulo (+ (cadr pitch) 2) 7) 65)))) + (if (= (caddr pitch) 0) + '() + (list (list (string-append "accidentals-" + (number->string (caddr pitch))) + '(font . "feta"))))))) + % } chord = \notes\transpose c''\chords{ -- 2.39.5