1 #include "tie-formatting-problem.hh"
4 #include "libc-extension.hh"
5 #include "tie-specification.hh"
7 Tie_specification::Tie_specification ()
10 has_manual_position_ = false;
11 has_manual_dir_ = false;
12 has_manual_delta_y_ = false;
17 = note_head_drul_[RIGHT] = 0;
19 = column_ranks_[LEFT] = 0;
23 Tie_specification::from_grob (Grob *tie)
26 if (scm_is_number (tie->get_property_data ("direction")))
28 manual_dir_ = to_dir (tie->get_property ("direction"));
29 has_manual_dir_ = true;
32 position_ = Tie::get_position (tie);
33 SCM pos_scm = tie->get_property ("staff-position");
34 if (scm_is_number (pos_scm))
36 has_manual_delta_y_ = (scm_inexact_p (pos_scm) == SCM_BOOL_T);
37 manual_position_ = scm_to_double (tie->get_property ("staff-position"));
38 has_manual_position_ = true;
43 Tie_specification::column_span () const
45 return column_ranks_[RIGHT] - column_ranks_[LEFT];