]> git.donarmstrong.com Git - lilypond.git/commitdiff
* lily/key-performer.cc (create_audio_elements): don't use
authorhanwen <hanwen>
Thu, 17 Mar 2005 23:13:28 +0000 (23:13 +0000)
committerhanwen <hanwen>
Thu, 17 Mar 2005 23:13:28 +0000 (23:13 +0000)
scm_eval_string. Check for minor 3rd directly.

* input/mutopia/J.S.Bach/baerenreiter-sarabande.ly
(sarabandeCelloGlobal): key is D minor, not F major.

ChangeLog
input/mutopia/J.S.Bach/baerenreiter-sarabande.ly
input/typography-demo.ly
lily/key-performer.cc
mf/GNUmakefile
scm/define-grobs.scm
scripts/midi2ly.py

index df5e7e8d9b2fb1690dc1dc86e11824d2b0724fa1..bc6c210e11f630164ed559a67812a380c19e4846 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-03-18  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * lily/key-performer.cc (create_audio_elements): don't use
+       scm_eval_string. Check for minor 3rd directly.
+  
+       * input/mutopia/J.S.Bach/baerenreiter-sarabande.ly
+       (sarabandeCelloGlobal): key is D minor, not F major.
+
 2005-03-17  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        Fix truncated --png output (Peter Danenberg).
@@ -39,6 +47,9 @@
 
 2005-03-15  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * mf/GNUmakefile ($(outdir)/lilypond.map): capitalize
+       Emmentaler/Aybabtu.
+
        * GNUmakefile.in: fix lilypond-words path.
 
        * po/tr.po: update to 2.3.21
index bcbb6b030ba498ae1f89d76be7065e676bc77c5c..5957c0d72bb9e5ba784c8829503848ab0cf4649b 100644 (file)
@@ -129,7 +129,7 @@ sarabandeA =  \context Voice  \relative c {
 
 sarabandeCelloGlobal = {
   \time 3/4
-  \key f \major
+  \key d \minor
   \clef bass
   \repeat "volta" 2 {
     s2.*12
index 1ac8e069f83958da325a3c961117c001b89a68c5..462b10b550fb213bf04711c585fa8962649f3852 100644 (file)
@@ -103,7 +103,7 @@ pianoLH =  \relative c'' \repeat volta 2\new Voice {
     \change Staff = down
        \oneVoice
     d,) | 
-     g4.( c,8) r r
+     g4.( b,8) r r
     \clef treble \grace s16 r8 <bes'>8-> <bes c>8->([ <a c>)] r <f c'> |
     \clef bass
     r8 dis( e) r c c |
index 9c05a1bb4dc3eb20912a7579cc0f835bca3d35ee..693fc792d36b883875ea76106a3fc305917e63b4 100644 (file)
@@ -59,10 +59,16 @@ Key_performer::create_audio_elements ()
 
       /* MIDI keys are too limited for lilypond scales.
         We check for minor scale and assume major otherwise.  */
-      SCM minor = scm_c_eval_string ("minor");
-      audio_ = new Audio_key (scm_to_int (acc),
-                             SCM_BOOL_T != scm_equal_p (minor, c_pitchlist));
 
+      SCM third = scm_assoc (scm_from_int (2),
+                            c_pitchlist);
+      bool minor = (scm_is_pair (third)
+                   && scm_is_integer (scm_cdr (third))
+                   && scm_to_int (scm_cdr (third)) == FLAT);
+      
+      audio_ = new Audio_key (scm_to_int (acc),
+                             !minor);
+                   
       Audio_element_info info (audio_, key_ev_);
       announce_element (info);
       key_ev_ = 0;
index e66b7490b3fe1c3c4255f66a76004b4bda523567..28fc569d3c569c7a3dcd9a850387a232b706217b 100644 (file)
@@ -175,16 +175,16 @@ fontdir: $(addprefix $(outdir)/, lilypond.map lilypond.sfd private-fonts fonts.s
 $(outdir)/lilypond.map: $(AFM_FILES)
        for i in $(FETA_FONTS); do echo $$i $$i '<'$$i.pfa; done > $@
        for i in $(STAFF_SIZES); \
-               do echo "emmentaler-$$i emmentaler-$$i <emmentaler-$$i.cff.ps" ; done \
+               do echo "Emmentaler-$$i Emmentaler-$$i <emmentaler-$$i.cff.ps" ; done \
        >> $@
-       echo "aybabtu aybabtu <aybabtu.cff.ps" >> $@
+       echo "Aybabtu Aybabtu <aybabtu.cff.ps" >> $@
 
 $(outdir)/Fontmap.lily: 
        for i in $(FETA_FONTS); do echo "/$$i ($$i.pfa);" ; done > $@
        for i in $(STAFF_SIZES); \
-               do echo "/emmentaler-$$i (emmentaler-$$i.cff.ps);" ; done \
+               do echo "/Emmentaler-$$i (emmentaler-$$i.cff.ps);" ; done \
        >> $@
-       echo "/aybabtu (aybabtu.cff.ps);" >> $@
+       echo "/Aybabtu (aybabtu.cff.ps);" >> $@
 
 
 local-clean:
index e715554fb7d702a3742677d034b0881d68bd82ff..724281b723d9aba5107d4df87bb59ec0aa9f3031 100644 (file)
                        (time-signature . (extra-space . 0.0))
                        (staff-bar . (extra-space . 0.0))
                        (breathing-sign . (minimum-space . 0.0))
-                       (clef . (extra-space . 0.7))
+                       (clef . (extra-space . 0.8))
                        (first-note . (fixed-space . 1.0))
                        (right-edge . (extra-space . 0.0))
                        (key-signature . (extra-space . 0.0))
        (after-line-breaking-callback . ,Tuplet_bracket::after_line_breaking)
        (print-function . ,Tuplet_bracket::print)
        (font-shape . italic)
-       (font-series . bold)
+;      (font-series . bold)
 
        (font-size . -2)
        (meta . ((interfaces . (text-interface line-interface tuplet-bracket-interface font-interface spanner-interface))))
index 66d8fbee9adf19a3899ab56261f87f5b5709a001..777cfd1eaa640faced46a374f5fcf58012184850 100644 (file)
@@ -503,10 +503,9 @@ class Key:
 
                s = ''
                if self.sharps and self.flats:
-                       s = '\\keysignature %s ' % 'TODO'
+                        pass
                else:
-                       
-                       if self.flats:
+                        if self.flats:
                                k = (ord ('cfbeadg'[self.flats % 7]) - ord ('a') - 2 -2 * self.minor + 7) % 7
                        else:
                                k = (ord ('cgdaebf'[self.sharps % 7]) - ord ('a') - 2 -2 * self.minor + 7) % 7
@@ -1064,6 +1063,7 @@ for opt in options:
                else:
                        flats = - alterations
                key = Key (sharps, flats, minor)
+                print key
        elif o == '--start-quant' or o == '-s':
                start_quant = string.atoi (a)
        elif o == '--allow-tuplet' or o == '-t':