]> git.donarmstrong.com Git - lilypond.git/commitdiff
* lily/side-position-interface.cc (out_of_staff): move contents of
authorhanwen <hanwen>
Tue, 27 Jan 2004 00:42:26 +0000 (00:42 +0000)
committerhanwen <hanwen>
Tue, 27 Jan 2004 00:42:26 +0000 (00:42 +0000)
out_of_staff into aligned_side.
remove out_of_staff().

* lily/side-position-interface.cc: add staff-padding support to
Side_position_interface::aligned_side.

* lily/beam.cc: use Drul_array<Real> iso. interval, because *=
operations on empty intervals are silly.

ChangeLog
lily/beam.cc
lily/new-fingering-engraver.cc
lily/side-position-interface.cc

index d4c2f81d9a57b4212464193d6d26ec5124379f74..e1cfbc9dbb1478ccf44dfd7099e1a26caf516082 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
        * lily/side-position-interface.cc (out_of_staff): move contents of
        out_of_staff into aligned_side.
+       remove out_of_staff().
 
        * input/regression/measure-grouping.ly: fix warning.
 
index c6e6f1112df70818826aa99b7b509c8ae1d16139..05b83d41d2cac08c452858bd95bd287f1287d955 100644 (file)
@@ -19,7 +19,6 @@ TODO:
   
 Notes:
 
-
  - Stems run to the Y-center of the beam.
   
  - beam_translation is the offset between Y centers of the beam.
index 47c878daf388179447833cbfef06a8e8c7cc114f..c9ff3030059cf8f6d171c99f4f51a1f9c3688927 100644 (file)
@@ -254,7 +254,6 @@ New_fingering_engraver::position_scripts ()
       f->set_grob_property ("script-priority",
                            gh_int2scm (finger_prio + i));
       f->add_offset_callback (Side_position_interface::aligned_side_proc, Y_AXIS);
-      f->add_offset_callback (Side_position_interface::out_of_staff_proc, Y_AXIS);
       f->add_offset_callback (Self_alignment_interface::centered_on_parent_proc, X_AXIS);
       f->add_offset_callback (Self_alignment_interface::aligned_on_self_proc, X_AXIS);
       
@@ -274,7 +273,6 @@ New_fingering_engraver::position_scripts ()
       f->add_offset_callback (Self_alignment_interface::centered_on_parent_proc, X_AXIS);
       f->add_offset_callback (Self_alignment_interface::aligned_on_self_proc, X_AXIS);
       f->add_offset_callback (Side_position_interface::aligned_side_proc, Y_AXIS);
-      f->add_offset_callback (Side_position_interface::out_of_staff_proc, Y_AXIS);
       f->set_grob_property ("direction", gh_int2scm (DOWN));
       typeset_grob (f);
     }
index 42ae7dfd04d13d0688b992c68d81044c9c25ee4b..3aa8e58568670706bd8af810ec3f2af01e20b59b 100644 (file)
@@ -197,6 +197,11 @@ Side_position_interface::aligned_side (SCM element_smob, SCM axis)
       o += - iv[-d];
     }
 
+  /*
+  Maintain a minimum distance to the staff. This is similar to side
+  position with padding, but it will put adjoining objects on a row if
+  stuff sticks out of the staff a little.
+ */
   Grob * st = Staff_symbol_referencer::get_staff_symbol (me);
   if (st && a == Y_AXIS
       && gh_number_p (me->get_grob_property ("staff-padding")))
@@ -216,18 +221,6 @@ Side_position_interface::aligned_side (SCM element_smob, SCM axis)
   return gh_double2scm (o);
 }
 
-/*
-  Maintain a minimum distance to the staff. This is similar to side
-  position with padding, but it will put adjoining objects on a row if
-  stuff sticks out of the staff a little.
- */
-MAKE_SCHEME_CALLBACK (Side_position_interface,out_of_staff,2);
-SCM
-Side_position_interface::out_of_staff (SCM element_smob, SCM axis)
-{
-  return gh_double2scm (0);
-}
-
 void
 Side_position_interface::add_staff_support (Grob*me)
 {
@@ -291,8 +284,8 @@ ADD_INTERFACE (Side_position_interface,"side-position-interface",
               "Position a victim object (this one) next to other objects (the "
               "support).  In this case, the property @code{direction} signifies where to put the  "
               "victim object relative to the support (left or right, up or down?)\n\n "
-              "The @code{out_of_staff} routine puts objects at a distance of the staff. If the property "
-              "@code{staff-padding} is not defined, the routine doesn't do anything." 
+              "The routine puts objects at a distance of the staff if the property "
+              "@code{staff-padding} is defined. If undefined, the staff symbol is ignored." 
               ,
               "staff-padding side-support-elements direction-source "
               "direction side-relative-direction minimum-space padding");