]> git.donarmstrong.com Git - lilypond.git/commitdiff
* lily/slur-quanting.cc (enumerate_attachments): apply center on
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 1 Aug 2004 23:36:19 +0000 (23:36 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 1 Aug 2004 23:36:19 +0000 (23:36 +0000)
stem-X in more cases.

* lily/stem.cc (dim_callback): solve todo.

ChangeLog
lily/slur-quanting.cc
lily/stem.cc
scm/lily.scm

index 3ec7d23a72e2e60bed906e27110412ecd1d3ec34..a2217214dbaf38b95037d08dd74ece0bedbc3d27 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-08-02  Han-Wen Nienhuys   <hanwen@xs4all.nl>
+
+       * lily/slur-quanting.cc (enumerate_attachments): apply center on
+       stem-X in more cases. 
+
+       * lily/stem.cc (dim_callback): solve todo.
+
 2004-08-01  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
        * input/test/README: new file.
index bed231991f724c99a1ee35ff3654c5419b6481c9..b6ad5ac5a3a88da6b67d025225c5d799234c7247 100644 (file)
@@ -556,6 +556,10 @@ get_base_attachments (Spanner *me,
          bool same_beam =
            (extremes[d].stem_ && extremes[-d].stem_
             && Stem::get_beam (extremes[d].stem_) == Stem::get_beam (extremes[-d].stem_));
+
+         /*
+           fixme: X coord should also be set in this case.
+          */
          if (stem
              && extremes[d].stem_dir_ == dir
              && Stem::get_beaming (stem, -d)
@@ -692,10 +696,10 @@ enumerate_attachments (Grob *me, Grob *common[],
              os[d][X_AXIS] = base_attachment[d][X_AXIS];
              if (extremes[d].stem_
                  && !Stem::is_invisible (extremes[d].stem_)
-                 && extremes[d].stem_dir_ == dir
-                 && dir == -d)
+                 && extremes[d].stem_dir_ == dir)
                {
-                 if (extremes[d].stem_extent_[Y_AXIS].contains (os[d][Y_AXIS]))
+                 if (dir == -d
+                     && extremes[d].stem_extent_[Y_AXIS].contains (os[d][Y_AXIS]))
                    {
                      os[d][X_AXIS] =  extremes[d].slur_head_extent_[-d]
                        - d * 0.3;
index 6a2acc434d6a3e9bfb8ed02935ede46789df42e2..ebf61ee1778960b703c4c7b3f3587bef73a8b272 100644 (file)
@@ -631,11 +631,15 @@ Stem::dim_callback (SCM e, SCM ax)
       r.set_empty ();
     }    
   else if (unsmob_grob (me->get_property ("beam")) || abs (duration_log (me)) <= 2)
-    ;  // TODO!
+    {
+      r = Interval (-1,1);
+      r *= thickness (me)/2; 
+    }
   else
-    r = flag (me).extent (X_AXIS)
-      + thickness (me)/2;
-  
+    {
+      r = flag (me).extent (X_AXIS)
+       + thickness (me)/2;
+    }  
   return ly_interval2scm (r);
 }
 
index a9339f97b7e201cf0457cbcc104438a822fe5e34..07d1146b9f216b011eb0964e880bc9054acdf721 100644 (file)
@@ -594,7 +594,7 @@ L1 is copied, L2 not.
     (for-each
      (lambda (f)
        (catch 'ly-file-failed (lambda () (ly:parse-file f)) handler)
-       (dump-gc-protects)
+;       (dump-gc-protects)
        )
      files)