#include "p-col.hh"
#include "debug.hh"
-IMPLEMENT_IS_TYPE_B1(Tie,Bow);
+
void
Tie::set_head (Direction d, Note_head * head_l)
// uhm? loose end of tie // tie attached to stem
else
{
- dx_f_drul_[d] = -d * (spanned_drul_[d]->width ().length ()
+ dx_f_drul_[d] = -d * (spanned_drul_[d]->extent (X_AXIS).length ()
-0.5 * notewidth);
}
}
Real damp_f = paper ()->get_var ("tie_slope_damping");
Offset d_off = Offset (dx_f_drul_[RIGHT] - dx_f_drul_[LEFT],
dy_f_drul_[RIGHT] - dy_f_drul_[LEFT]);
- d_off.x () += width ().length ();
+ d_off.x () += extent (X_AXIS).length ();
Real ratio_f = abs (d_off.y () / d_off.x ());
if (ratio_f > damp_f)
void
Tie::do_substitute_dependency (Score_element*o, Score_element*n)
{
- Note_head *new_l =n?(Note_head*)dynamic_cast <Item *> (n):0;
+ Note_head *new_l =n?dynamic_cast<Note_head *> (n):0;
if (dynamic_cast <Item *> (o) == head_l_drul_[LEFT])
head_l_drul_[LEFT] = new_l;
else if (dynamic_cast <Item *> (o) == head_l_drul_[RIGHT])