]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.3.5
authorfred <fred>
Tue, 26 Mar 2002 22:43:21 +0000 (22:43 +0000)
committerfred <fred>
Tue, 26 Mar 2002 22:43:21 +0000 (22:43 +0000)
lily/chord.cc
scm/chord-names.scm
scripts/ly2dvi.py

index 8dbc57a6c72bc6608f22fe2dfd931f516214e808..f6e1341d9e22ca9afb6434d69646ddd777e21b88 100644 (file)
@@ -494,9 +494,8 @@ Chord::pitch2molecule (Musical_pitch p) const
 
   Molecule mol = lookup_l ()->text ("", p.str ().left_str (1).upper_str (), paper_l ());
   if (p.accidental_i_)
-    // urg, how to select the feta-1 font?
     mol.add_at_edge (X_AXIS, RIGHT, 
-                    lookup_l ()->accidental (p.accidental_i_, 0), 0);
+                    paper_l ()->lookup_l (-2)->accidental (p.accidental_i_, 0), 0);
   return mol;
 }
 
@@ -575,23 +574,11 @@ Chord::banter (Array<Musical_pitch> pitch_arr, Chord_name* name_p) const
       int accidental = p.accidental_i_ - scale[(step - 1) % 7].accidental_i_;
       if ((step < 16) && (has[step] != -1))
         has[step] = accidental == -1 ? -1 : 1;
+      // only from guile table ?
       if ((step == 3) && (accidental == -1))
        {
          mod_str = "m";
        }
-      /*
-        urg.
-       This routine gets a lot simpler, if we don't try to be catch
-       the 'dim' chords.  However, we'll have to list every exceptional
-       'dim' chord in scm: otherwise we'll get stuff like Cdim7-, iso
-       Cdim7, etc
-       */
-#ifdef SMART_DIM
-      else if ((step == 5) && (accidental == -1) && (has[3] == -1))
-       {
-         mod_str = "dim";
-       }
-#endif
       else if (accidental
               || (!(step % 2) 
               || ((i == add_arr.size () - 1) && (step > 5))))
@@ -603,26 +590,11 @@ Chord::banter (Array<Musical_pitch> pitch_arr, Chord_name* name_p) const
               add_str += "maj7";
            }
          else
-#ifdef SMART_DIM
            {
-             if ((step % 2) && (accidental == -1) 
-                && (has[3] == -1) && (has[5] == -1))
-               {               
-                 if (i != add_arr.size () - 1)
-                   sep_str = "";
-                 else
-                   add_str += to_str (step);
-               }
-             else
-#endif
-               {
-                 add_str += to_str (step);
-                 if (accidental)
-                   add_str += accidental < 0 ? "-" : "+";
-               }
-#ifdef SMART_DIM
+             add_str += to_str (step);
+             if (accidental)
+               add_str += accidental < 0 ? "-" : "+";
            }
-#endif
        }
     }
 
@@ -652,7 +624,12 @@ Chord::banter (Array<Musical_pitch> pitch_arr, Chord_name* name_p) const
     }
 }
 
-
+/*
+  This routine tries to guess tonic in a possibly inversed chord, ie
+  <e g c'> should produce: C.
+  This is only used for chords that are entered as simultaneous notes,
+  chords entered in \chord mode are fully defined.
+ */
 int
 Chord::find_tonic_i (Array<Musical_pitch> const* pitch_arr_p)
 {
index 597679a2cf09160cf9680355cd32838a62a84ad4..3329c144d618defc29d9491a9e19f750feab373b 100644 (file)
        ;((6 . 0) . ("H" ""))
        ;((6 . -1) . ("B" ("feta-1" . "\12")))
 
-       ; urg, temp hack for accidental size: can't set from Chord::
-       ((0 . 1) . ("C" ("feta-1" . "\10")))
-       ((1 . 1) . ("D" ("feta-1" . "\10")))
-       ((2 . 1) . ("E" ("feta-1" . "\10")))
-       ((3 . 1) . ("F" ("feta-1" . "\10")))
-       ((4 . 1) . ("G" ("feta-1" . "\10")))
-       ((5 . 1) . ("A" ("feta-1" . "\10")))
-       ((6 . 1) . ("B" ("feta-1" . "\10")))
-
-       ((0 . -1) . ("C" ("feta-1" . "\12")))
-       ((1 . -1) . ("D" ("feta-1" . "\12")))
-       ((2 . -1) . ("E" ("feta-1" . "\12")))
-       ((3 . -1) . ("F" ("feta-1" . "\12")))
-       ((4 . -1) . ("G" ("feta-1" . "\12")))
-       ((5 . -1) . ("A" ("feta-1" . "\12")))
-       ((6 . -1) . ("B" ("feta-1" . "\12")))
+       ; C-p/C-r current feta chars for sharp/flat
+       ; don't use them: ly2dvi breaks (inputenc package)
+       ;((0 . 1) . ("C" ("feta-1" . "\10")))
+       ;((0 . -1) . ("C" ("feta-1" . "\12")))
        )
       pitch-names-alist))
 
index d2ab97ae06c1849b362a10ca3458613340b09354..57702825d5bef1449382e98d9115f8ef65d63a2e 100644 (file)
@@ -468,7 +468,7 @@ class Properties:
         t=''
        if os.environ.has_key ('MFINPUTS'):
                t = os.environ['MFINPUTS'] 
-        os.environ['MFINPUTS'] = os.pathsep + t + \
+        os.environ['MFINPUTS'] = t + os.pathsep + \
                                  os.path.join(this.get('root'), 'mf')
 
         if os.environ.has_key('TMP'):