remove delta-pitch. Use delta-position everywhere.
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.
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.
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
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);
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"
+ );
+
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;
}
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;
}
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);
"add-cauda "
"add-stem "
"add-join "
- "delta-pitch "
+ "delta-position "
"x-offset "
);
;;; 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]