]> git.donarmstrong.com Git - lilypond.git/commitdiff
patch::: 1.3.129.jcn1
authorJan Nieuwenhuizen <janneke@gnu.org>
Mon, 19 Feb 2001 20:23:24 +0000 (21:23 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Mon, 19 Feb 2001 20:23:24 +0000 (21:23 +0100)
1.3.129.jcn1
============

* More hooks for chord pitch name overrides, see
input/tricks/german-chords.ly.

1.3.129
=======

CHANGES
VERSION
input/bugs/slur-dots.ly [new file with mode: 0644]
input/tricks/german-chords.ly [new file with mode: 0644]
scm/chord-name.scm

diff --git a/CHANGES b/CHANGES
index d8a5c2349a8b730bcc1f849b0f3722fc2f4ef27c..93f614c23c8ba3d591ead1429962ca15cd3d3c45 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,12 @@
+1.3.129.jcn1
+============
+
+* More hooks for chord pitch name overrides, see
+input/tricks/german-chords.ly.
+
+1.3.129
+=======
+
 1.3.128.jcn2
 ============
 
diff --git a/VERSION b/VERSION
index c43717a28ef1fa2690949f415924e840bad9c2e7..b23a1bdeb19e1092fb04b8019a5afe6e55c39212 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=3
 PATCH_LEVEL=129
-MY_PATCH_LEVEL=
+MY_PATCH_LEVEL=jcn1
 
 # use the above to send patches: MY_PATCH_LEVEL is always empty for a
 # released version.
diff --git a/input/bugs/slur-dots.ly b/input/bugs/slur-dots.ly
new file mode 100644 (file)
index 0000000..3985fe3
--- /dev/null
@@ -0,0 +1,10 @@
+% Placement of slur uses x-extent of note-head which includes dots
+       
+\score {
+  \notes\relative c'' {
+    c4.............()c
+  }
+  \paper {
+    linewidth = -1.;
+  }
+} 
\ No newline at end of file
diff --git a/input/tricks/german-chords.ly b/input/tricks/german-chords.ly
new file mode 100644 (file)
index 0000000..c88b747
--- /dev/null
@@ -0,0 +1,36 @@
+%  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
index 900532aaccaad4b18561beb270f5fb1130d3f01d..933048f83bc75a759b5a49f3e30442b37b38e63a 100644 (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)))
                        '()))
             '())