]> git.donarmstrong.com Git - lilypond.git/commitdiff
patch::: 1.3.137.rz1
authorRune Zedeler <rune@lilypond.org>
Sun, 11 Mar 2001 22:47:49 +0000 (23:47 +0100)
committerRune Zedeler <rune@lilypond.org>
Sun, 11 Mar 2001 22:47:49 +0000 (23:47 +0100)
1.3.137.rz1
===========

* Added nested staffgroups/choirstaffs support

* Finished german-chords.ly and moved it to ly/

CHANGES
VERSION
input/test/test-german-chords.ly [new file with mode: 0644]
input/tricks/german-chords.ly
lily/system-start-delimiter-engraver.cc
ly/engraver.ly
ly/german-chords.ly [new file with mode: 0644]
scm/chord-name.scm

diff --git a/CHANGES b/CHANGES
index 17be7833a83e771557fade6b4c08950f40d08c24..b0e5f71b8b95bad2805d129e7df11c6d9e59faa7 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,10 @@
+1.3.137.rz1
+===========
+
+* Added nested staffgroups/choirstaffs support
+
+* Finished german-chords.ly and moved it to ly/
+
 1.3.136.hwn2
 ============
 
diff --git a/VERSION b/VERSION
index 5d3452114ec1efd503979d310c66e7bedbd60569..53621fde10413693ba62381043661e177f038fde 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -2,7 +2,7 @@ PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=3
 PATCH_LEVEL=137
-MY_PATCH_LEVEL=
+MY_PATCH_LEVEL=rz1
 
 # use the above to send patches: MY_PATCH_LEVEL is always empty for a
 # released version.
diff --git a/input/test/test-german-chords.ly b/input/test/test-german-chords.ly
new file mode 100644 (file)
index 0000000..0df2a1a
--- /dev/null
@@ -0,0 +1,14 @@
+\include "german-chords.ly"
+% #(set! german-Bb #t)
+
+ch = \chords { beses1/+beses bes/+bes b/+b bis/+bis ases/+ases as/+as a/+a ais/+ais fisis/+fisis}
+
+
+\score {
+   <
+   \context ChordNames=ch {\ch}
+   \context Staff=st \chords {\ch}
+   >
+   \paper {}
+}
+
index b04aa71cb8fd05dd2cc62d5bbcda9162d53330f9..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,37 +0,0 @@
-
-%  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;
-  }
-}
-           
index 1f4504a7338c9fa0e9bfc48c2051f94cfb2dba8c..27ee99dc86b22375148e2f4431a1cae7b99432bd 100644 (file)
@@ -53,6 +53,14 @@ System_start_delimiter_engraver::acknowledge_grob (Grob_info inf)
       if (gh_symbol_p (gl) && gl  == ly_symbol2scm ("brace")
          && gh_symbol_p (my_gl) && my_gl == ly_symbol2scm ("bracket"))
        inf.elem_l_->translate_axis (-1.0, X_AXIS); // ugh
+      else if (gh_symbol_p (gl) && gl  == ly_symbol2scm ("bracket")
+              && gh_symbol_p (my_gl) && my_gl == ly_symbol2scm ("bracket"))
+       {
+         inf.elem_l_->translate_axis ( -0.8, X_AXIS); // ugh
+          inf.elem_l_->set_grob_property ("arch-height",
+         gh_double2scm(gh_scm2double(inf.elem_l_->get_grob_property
+                                     ("arch-height"))+0.5));
+        }
     }
 
 }
index 91cba44360ef5b89f502f2e19ff0799b11c80cfb..2f266e3befce0f3edf8d04f8f540fa4597987d9e 100644 (file)
@@ -68,6 +68,8 @@ ChoirStaffContext = \translator {
        \accepts "RhythmicStaff";
        \accepts "GrandStaff";
        \accepts "PianoStaff";
+       \accepts "StaffGroup";
+       \accepts "ChoirStaff";
        \accepts "Lyrics";
        \accepts "ChordNames";
 }
@@ -245,6 +247,8 @@ StaffGroupContext= \translator {
        \accepts "RhythmicStaff";
        \accepts "GrandStaff";
        \accepts "PianoStaff";
+       \accepts "StaffGroup";
+       \accepts "ChoirStaff";
        
        \accepts "Lyrics";
        \accepts "ChordNames";
diff --git a/ly/german-chords.ly b/ly/german-chords.ly
new file mode 100644 (file)
index 0000000..e158592
--- /dev/null
@@ -0,0 +1,39 @@
+
+%  german-chords.ly:
+% german/norwegian/danish?
+
+% To get Bb instead of B, use
+% \include "german-chords.ly"
+% #(set! german-Bb #t)
+
+#(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")
+     )
+     (cons
+       (list-ref '("C" "D" "E" "F" "G" "A" "H") (cadr pitch))
+       (accidental->text (caddr pitch))
+     )
+   )
+ )   
+
+
+#(define (pitch->note-name-text-banter pitch)
+   (if (equal? (cdr pitch) '(6 -1))
+     '("b")
+     (cons
+       (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)))
+         )
+       )
+       '()
+     )
+   )
+ )
index bcdf7aaa1f928e754eb0020f261a770582fc97a8..5bbb2017e4d61f904725fb87163f1d1debe96661 100644 (file)
 
 (define (pitch->note-name pitch)
   (cons (cadr pitch) (caddr pitch)))
-  
-(define (pitch->text pitch)
-  (cons
-    (make-string 1 (integer->char (+ (modulo (+ (cadr pitch) 2) 7) 65)))
-    (if (= (caddr pitch) 0)
+
+(define (accidental->text acc)
+    (if (= acc 0)
       '()
       (list
        (append '(music)
                                (list (append '((raise . 0.6))
                                  (list
                                   (string-append "accidentals-" 
-                                                 (number->string (caddr pitch)))))))))))))))
+                                                 (number->string acc))))))))))))
+)
+
+(define (pitch->text pitch)
+  (cons
+    (make-string 1 (integer->char (+ (modulo (+ (cadr pitch) 2) 7) 65)))
+    (accidental->text (caddr pitch))
+  )
+)
 
 ;;; Hooks to override chord names and note names, 
 ;;; see input/tricks/german-chords.ly