]> git.donarmstrong.com Git - lilypond.git/commitdiff
(all-internal-grob-properties):
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 19 Jul 2006 13:36:56 +0000 (13:36 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 19 Jul 2006 13:36:56 +0000 (13:36 +0000)
remove delta-pitch. Use delta-position everywhere.

ChangeLog
Documentation/topdocs/NEWS.tely
lily/coherent-ligature-engraver.cc
lily/mensural-ligature.cc
lily/vaticana-ligature-engraver.cc
lily/vaticana-ligature.cc
scm/define-grob-properties.scm

index 6151491b8e851f2e76b044dcc6d55bb4bf9bc216..9745c5222a5f0dead96380faa674fc21e8bee697 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-07-19  Han-Wen Nienhuys  <hanwen@lilypond.org>
 
+       * scm/define-grob-properties.scm (all-internal-grob-properties):
+       remove delta-pitch. Use delta-position everywhere.
+
        * scm/output-lib.scm (fall::print): use new order.
 
        * scm/output-ps.scm (path): reorder arguments.
index 32d7949faf46d45f322809500ef0cdf41ff1a324..f357cd2611337eb53c7db523c240d61687bcede7 100644 (file)
@@ -69,10 +69,9 @@ which scares away people.
 Falls and doits can be added to notes
 
 @lilypond[fragment,ragged-right,relative=2]
-  \override Score.SpacingSpanner #'shortest-duration-space = #3.0
-  c4-\bendAfter #+5
-  c4-\bendAfter #-3
-}
+\override Score.SpacingSpanner #'shortest-duration-space = #3.0
+c4-\bendAfter #+5
+c4-\bendAfter #-3
 @end lilypond
 
 This feature was sponsored by Anthony Youngman and Paul Scott.
index ff1691ef643312fe78fd2ab2519216ff02b36402..957106d4d7e94b97675c742faf46f7c8f418eae1 100644 (file)
@@ -179,13 +179,13 @@ compute_delta_pitches (vector<Grob_info> primitives)
       if (prev_primitive)
        {
          delta_pitch = pitch - prev_pitch;
-         prev_primitive->set_property ("delta-pitch",
+         prev_primitive->set_property ("delta-position",
                                        scm_from_int (delta_pitch));
        }
       prev_pitch = pitch;
       prev_primitive = primitive;
     }
-  primitive->set_property ("delta-pitch", scm_from_int (0));
+  primitive->set_property ("delta-position", scm_from_int (0));
 }
 
 void
index a36f1b17239386c35421129dff891a4f6bfbb111..c327da0b551d3c7455302b5db73e1d20c7c58fca 100644 (file)
@@ -110,7 +110,7 @@ internal_brew_primitive (Grob *me)
 
   if (primitive & MLP_FLEXA)
     {
-      delta_pitch = robust_scm2int (me->get_property ("delta-pitch"),
+      delta_pitch = robust_scm2int (me->get_property ("delta-position"),
                                    0);
       width
        = robust_scm2double (me->get_property ("flexa-width"), 2.0 * staff_space);
@@ -221,5 +221,12 @@ Mensural_ligature::print (SCM)
 
 ADD_INTERFACE (Mensural_ligature, "mensural-ligature-interface",
               "A mensural ligature",
-              "delta-pitch flexa-width head-width join-right-amount " // "add-join "
-              "primitive thickness");
+
+              "delta-position "
+              "flexa-width "
+              "head-width "
+              "join-right-amount "
+              "primitive "
+              "thickness"
+              );
+
index 22c42c1cd218e7eb8a75b1c416743efd0bbfde9d..6bfd470c0954ba6448925f7de1b134fa14b49454 100644 (file)
@@ -205,13 +205,13 @@ Vaticana_ligature_engraver::align_heads (vector<Grob_info> primitives,
       int delta_pitch = 0;
       if (prev_primitive) /* urgh, need prev_primitive only here */
        {
-         SCM delta_pitch_scm = prev_primitive->get_property ("delta-pitch");
+         SCM delta_pitch_scm = prev_primitive->get_property ("delta-position");
          if (delta_pitch_scm != SCM_EOL)
            delta_pitch = scm_to_int (delta_pitch_scm);
          else
            {
              primitive->programming_error ("Vaticana_ligature:"
-                                           "delta-pitch undefined -> "
+                                           "delta-position undefined -> "
                                            "ignoring grob");
              continue;
            }
@@ -368,13 +368,13 @@ Vaticana_ligature_engraver::transform_heads (Spanner *ligature,
       Item *primitive = dynamic_cast<Item *> (primitives[i].grob ());
 
       int delta_pitch;
-      SCM delta_pitch_scm = primitive->get_property ("delta-pitch");
+      SCM delta_pitch_scm = primitive->get_property ("delta-position");
       if (delta_pitch_scm != SCM_EOL)
        delta_pitch = scm_to_int (delta_pitch_scm);
       else
        {
          primitive->programming_error ("Vaticana_ligature:"
-                                       "delta-pitch undefined -> "
+                                       "delta-position undefined -> "
                                        "ignoring grob");
          continue;
        }
index 85e88b51ed2fcaacae0f4b1a2a65b81a28021f9d..6c0beaf38722dbfa1f7579e8661403f63b311af3 100644 (file)
@@ -210,7 +210,7 @@ vaticana_brew_primitive (Grob *me)
 
   int pos = Staff_symbol_referencer::get_rounded_position (me);
 
-  SCM delta_pitch_scm = me->get_property ("delta-pitch");
+  SCM delta_pitch_scm = me->get_property ("delta-position");
   int delta_pitch;
   if (delta_pitch_scm != SCM_EOL)
     delta_pitch = scm_to_int (delta_pitch_scm);
@@ -303,6 +303,6 @@ ADD_INTERFACE (Vaticana_ligature, "vaticana-ligature-interface",
               "add-cauda "
               "add-stem "
               "add-join "
-              "delta-pitch "
+              "delta-position "
               "x-offset "
               );
index 4bde5b1c3c80ea9b27b4b89db61308f89d5a7628..9e7f8e39893d5e003450b8be60541824e2dce1cd 100644 (file)
@@ -589,7 +589,7 @@ debugging")
 ;;; the next note could be seen
      (join-right-amount ,number? "")
 
-     (delta-pitch ,number? "the interval between this and the next note, or, more precisely, their vertical distance; this is used in ligatures for calculation of the height of vertical joins flexa shapes")
+     (delta-position ,number? "vertical position difference")
      (head-width ,ly:dimension? "width of this ligature head")
 
      ;; [TODO: change this]