2 rhythmic-head.cc -- implement Rhythmic_head
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 #include "rhythmic-head.hh"
13 #include "staff-symbol-referencer.hh"
18 Rhythmic_head::dots_l (Score_element*me)
20 SCM s = me->get_elt_property ("dot");
21 return dynamic_cast<Item*> (unsmob_element (s));
25 Rhythmic_head::balltype_i (Score_element*me)
27 SCM s = me->get_elt_property ("duration-log");
29 return gh_number_p (s) ? gh_scm2int (s) : 0;
33 Rhythmic_head::stem_l (Score_element*me)
35 SCM s = me->get_elt_property ("stem");
36 return dynamic_cast<Item*> (unsmob_element (s));
40 Rhythmic_head::dot_count (Score_element*me)
43 ? gh_scm2int (dots_l (me)->get_elt_property ("dot-count")) : 0;
47 Rhythmic_head::set_dots (Score_element*me,Item *dot_l)
49 me->set_elt_property ("dot", dot_l->self_scm ());
54 Rhythmic_head::set_interface (Score_element*me)
56 me->set_interface (ly_symbol2scm ("rhythmic-head-interface"));
60 Rhythmic_head::has_interface (Score_element*me)
62 return me && me->has_interface (ly_symbol2scm ("rhythmic-head-interface"));