- Item *sl = head (me, LEFT) ? Rhythmic_head::get_stem (head (me, LEFT)) : 0;
- Item *sr = head (me, RIGHT) ? Rhythmic_head::get_stem (head (me, RIGHT)) : 0;
- if (sl && sr)
- {
- if (get_grob_direction (sl) == UP
- && get_grob_direction (sr) == UP)
- return DOWN;
- }
- else if (sl || sr)
- {
- Item *s = sl ? sl : sr;
- return -get_grob_direction (s);
- }
-
- return UP;
-}
-
-void
-Tie::set_direction (Grob *me)
-{
- if (!get_grob_direction (me))
- {
- if (Tie_column::has_interface (me->get_parent (Y_AXIS)))
- Tie_column::set_directions (me->get_parent (Y_AXIS));
- else
- set_grob_direction (me, Tie::get_default_dir (me));
- }
-}
-
-Interval
-Tie::get_default_attachments (Spanner *me, Grob *common, Real gap,
- int *staff_position,
- bool *in_between
- )
-{
- Real staff_space = Staff_symbol_referencer::staff_space (me);
- Direction dir = get_grob_direction (me);
- Interval attachments;