]> git.donarmstrong.com Git - lilypond.git/commitdiff
(set_chord_outlines): bugfix: insert complete
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 11 Sep 2005 09:59:49 +0000 (09:59 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 11 Sep 2005 09:59:49 +0000 (09:59 +0000)
box in skyline.

ChangeLog
lily/spacing-spanner.cc
lily/tie-column.cc
scm/define-music-types.scm

index 6534f18e440706d173cc64d85d9fe54bdd31dde1..e0bbce33e275c88f38467e20c2e72e838cb7d903 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-09-11  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * lily/tie-column.cc (set_chord_outlines): bugfix: insert complete
+       box in skyline.
+
 2005-09-08  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
        * lily/tie.cc (get_configuration): don't crash if left_dot is NULL.
index 783889d3c8989eafe95cea78ac7069d3b463ed23..2b9da0b80262071741f2b2fe9b19fa81c3fc4d91 100644 (file)
@@ -439,9 +439,15 @@ ADD_INTERFACE (Spacing_spanner, "spacing-spanner-interface",
               "head width) A 16th note is followed by 0.5 note head width. The\n"
               "quarter note is followed by  3 NHW, the half by 4 NHW, etc.\n",
 
-              "grace-space-factor spacing-increment base-shortest-duration strict-note-spacing "
-              "shortest-duration-space common-shortest-duration uniform-stretching "
-              "packed-spacing ");
+              "grace-space-factor "
+              "spacing-increment "
+              "base-shortest-duration "
+              "strict-note-spacing "
+              "shortest-duration-space "
+              "common-shortest-duration "
+              "uniform-stretching "
+              "packed-spacing "
+              );
 
 ADD_INTERFACE (Spacing_interface, "spacing-interface",
               "Something to do with line breaking and spacing. "
index 38ac0c0a8a6014fc8c7874257a29cb56806a3a69..670211562d28d65f5e12eb3441f1a506ed63770c 100644 (file)
@@ -107,7 +107,7 @@ set_chord_outlines (Drul_array< Array<Skyline_entry> > *skyline_drul,
       Array<Box> boxes;
       Interval x_union;
 
-      Grob *stem = 0; 
+      Grob *stem = 0;
       for (int i = 0; i < ties.size (); i++)
        {
          Spanner *tie = dynamic_cast<Spanner*> (ties[i]);
@@ -178,15 +178,20 @@ set_chord_outlines (Drul_array< Array<Skyline_entry> > *skyline_drul,
       do
        {
          Interval x ;
+         Interval y;
          if (boxes.size())
            {
              Box b = boxes.boundary (updowndir, 0);
              x = b[X_AXIS];
              x[-d] =  b[X_AXIS].linear_combination (-d / 2);
+             y[-updowndir] = b[Y_AXIS][updowndir];
+             y[updowndir] = updowndir * infinity_f;
            }
-         
+
          if (!x.is_empty ())
-           (*skyline_drul)[d].boundary (updowndir, 0).height_ = x[-d]; 
+           insert_extent_into_skyline (&skyline_drul->elem_ref (d),
+                                       Box (x,y),
+                                       Y_AXIS, -d);
        }
       while (flip (&updowndir) != DOWN);
 
index 8fa7798a191fff3581fe112360818d3c11eafec1..1bdead905637a2d8cfa43f0c8bb6a24f79938837 100644 (file)
@@ -218,7 +218,7 @@ Syntax: @var{note}\\cr
        (description .  "Change the key signature. 
 
 Syntax: @code{\\key } @var{name} @var{scale}.")
-
+       (to-relative-callback . ,(lambda (x p) p))
        (types . (general-music key-change-event event))
        ))