]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.3.130
authorfred <fred>
Wed, 27 Mar 2002 00:49:06 +0000 (00:49 +0000)
committerfred <fred>
Wed, 27 Mar 2002 00:49:06 +0000 (00:49 +0000)
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/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)))
                        '()))
             '())