]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.3.92
authorfred <fred>
Tue, 26 Mar 2002 23:56:26 +0000 (23:56 +0000)
committerfred <fred>
Tue, 26 Mar 2002 23:56:26 +0000 (23:56 +0000)
lily/include/scm-hash.hh
scripts/etf2ly.py

index ae733e9df80a53acfe909c23b70d157fcb632fa0..a19ed279e777a8b415063979328fbd1cd6fe2eaf 100644 (file)
@@ -28,7 +28,7 @@ struct SCM_less
 typedef map<SCM,SCM, SCM_less> Scm_stl_map;
 
 /**
-   auto resizing hash table. This should come from GUILE.
+   auto resizing hash table. 
 
    1. ALWAYS USE THIS AS VIA A POINTER, i.e.
 
@@ -46,6 +46,15 @@ typedef map<SCM,SCM, SCM_less> Scm_stl_map;
    2. UPON DESTRUCTION, DO
 
    scm_unprotect_object (tab->self_scm_);
+
+
+
+
+   TODO:
+
+   This should come from GUILE. We're typically doing double work,
+   because KEY already is a symbol, and is looked up in a symbol
+   hashtable.
    
  */
 class Scheme_hash_table :  private Scm_stl_map
@@ -66,7 +75,6 @@ public:
 
   SCM to_alist () const;
   DECLARE_SMOBS(Scheme_hash_table,foo);
-
 };
 
 #endif /* SCM_HASH_HH */
index 4d142ff7e557ce7d7aaa6d690a875c9fa442d538..d469cc1775c1d1c9e4ea0e5321ee9983d7944885 100644 (file)
@@ -355,14 +355,13 @@ class Measure:
        def calculate (self):
                fs = []
 
-               
                if len (self.finale) < 2:
                        fs = self.finale[0]
                        fs = map (string.atoi, list (fs))
                        self.clef = fs[1]
                        self.frames = [fs[0]]
                else:
-                       fs = self.finale[0:2]
+                       fs = self.finale[0] + self.finale[1]
                        
                        fs = map (string.atoi, list (fs))
                        self.clef = fs[0]