]> git.donarmstrong.com Git - lilypond.git/commitdiff
patch::: 1.3.146.rz1
authorRune Zedeler <rune@lilypond.org>
Thu, 5 Apr 2001 20:28:10 +0000 (22:28 +0200)
committerRune Zedeler <rune@lilypond.org>
Thu, 5 Apr 2001 20:28:10 +0000 (22:28 +0200)
VERSION
input/test/Cc-chords.ly
input/test/test-german-chords.ly
ly/german-chords.ly
scm/chord-name.scm
scm/drums.scm

diff --git a/VERSION b/VERSION
index a4558c5f8a656d54eeb043fc36dc64770447ea0f..3e0146b254c6234650db1927b3cf9d3bc624d8fc 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=3
 PATCH_LEVEL=146
-MY_PATCH_LEVEL=jcn1
+MY_PATCH_LEVEL=rz1
 
 # use the above to send patches: MY_PATCH_LEVEL is always empty for a
 # released version.
index b92cb37198f9705fd6a25dcecd1bf17b2e47a9a2..b9a3d9dd3cce8b8c66f56e6ef354276ac659349a 100644 (file)
@@ -1,7 +1,9 @@
 \header {
-  texidoc="Jazz chord names, but with lower case names for minor chords";
+  texidoc="Jazz chord names, but with lower case names for minor chords"
 }
 
+\version "1.3.146"
+
 #(assoc-set! chord::names-alist-jazz
   '((0 . 0) (2 . -1)) '(""))
 
index 3e574ee957c28778db9d69b0b5a4586838fdc03e..240b6641c90e4787a138c0537dd5f927ae6ee838 100644 (file)
@@ -3,12 +3,12 @@
 
 % #(set! german-Bb #t)
 
-ch = \chords { beses1/+beses bes/+bes b/+b bis/+bis ases/+ases as/+as a/+a ais/+ais fisis/+fisis}
+ch = \chords { beses1/+beses bes/+bes b/+b bis/+bis ases/+ases as/+as a/+a ais/+ais fisis/+fisis }
 
 \score {
    <
    \context ChordNames=chn {\ch}
-   \context Staff=stf \chords {\ch}
+   \context Staff=stf {\clef "G_8" \ch }
    >
    \paper {}
 }
index 856340d12e6d17304f438b41532adbf7b3142947..eb0e026d6de9512b5fe9d214be841f649345856b 100644 (file)
@@ -9,32 +9,33 @@
 
 #(define german-Bb #f)
 
-#(define (pitch->chord-name-text-banter pitch)
-   (if (equal? (cdr pitch) '(6 -1))
-     (if german-Bb
-       (cons "B" (accidental->text -1))
-       '("B")
-     )
+#(define (pitch->chord-name-text-banter pitch steps)
+   (let ((dopitch (if (member (cdr pitch) '((6 -1) (6 -2)))
+                     (list 7 (+ (if german-Bb 0 1) (caddr pitch)))
+                     (cdr pitch)
+                )))
      (cons
-       (list-ref '("C" "D" "E" "F" "G" "A" "H") (cadr pitch))
-       (accidental->text (caddr pitch))
+       (list-ref '("C" "D" "E" "F" "G" "A" "H" "B") (car dopitch))
+       (accidental->text-super (cadr dopitch))
      )
    )
  )   
 
 
 #(define (pitch->note-name-text-banter pitch)
-   (if (equal? (cdr pitch) '(6 -1))
-     '("b")
-     (cons
+   (let ((dopitch (if (member (cdr pitch) '((6 -1) (6 -2)))
+                    (list 7 (+ 1 (caddr pitch)))
+                    (cdr pitch)
+                )))
+     (list
        (string-append
-         (list-ref '("c" "d" "e" "f" "g" "a" "h") (cadr pitch))
-         (if (or (equal? (cadr pitch) 2) (equal? (cadr pitch) 5))
-           (list-ref '( "ses"  "s" "" "is" "isis") (+ 2 (caddr pitch)))
-           (list-ref '("eses" "es" "" "is" "isis") (+ 2 (caddr pitch)))
+         (list-ref '("c" "d" "e" "f" "g" "a" "h" "b") (car dopitch))
+         (if (or (equal? (car dopitch) 2) (equal? (car dopitch) 5))
+           (list-ref '( "ses"  "s" "" "is" "isis") (+ 2 (cadr dopitch)))
+           (list-ref '("eses" "es" "" "is" "isis") (+ 2 (cadr dopitch)))
          )
        )
-       '()
      )
    )
  )
+
index 87a5d543e88b54aad3565830fcd3ceed57818401..01a3a1eb1e8a94daa54af30a91b48c884a8cbb00 100644 (file)
 ;;;;;;;;;;
 
 
-(define (accidental->text acc)
+(define (accidental->textp acc pos)
   (if (= acc 0)
       '()
-       (list '(music (font-relative-size . -2))
-            (string-append "accidentals-" (number->string acc)))))
+       (list (list '(music (font-relative-size . -2))
+            `(,pos ,(string-append "accidentals-" (number->string acc)))))))
 
-(define (accidental->text-super acc)
-  (if (= acc 0)
-      '()
-      (cons 'super (list (accidental->text acc)))))
-
-(define (accidental->text-sub acc)
-  (if (= acc 0)
-      '()
-      (cons sub (list accidental->text acc))))
+(define (accidental->text acc) (accidental->textp acc 'rows))
+(define (accidental->text-super acc) (accidental->textp acc 'super))
+(define (accidental->text-sub acc) (accidental->textp acc 'sub))
 
 
 (define (pitch->note-name pitch)
@@ -87,7 +81,7 @@
 
 
 ;;; Hooks to override chord names and note names, 
-;;; see input/tricks/german-chords.ly
+;;; see ly/german-chords.ly
 
 (define (pitch->text-banter pitch)
   (pitch->text pitch))
index 187844cd5db595ff1fdcc1adedcc2312342b8817..c6de3d7132a7cc3b0d334e1ff1a691d2df309e44 100644 (file)
@@ -1,4 +1,4 @@
-;;;; drum-"hack". See input/tricks/drums.ly and ly/drumpitch.ly
+;;;; drum-"hack". See input/test/drums.ly and ly/drumpitch.ly
 ;;;; 2001/03/25 Rune Zedeler <rune@zedeler.dk>
 
 ;;;; changed eval to ly-eval for guile 1.4/1.4.1 compatibility --jcn