2 rhythmic-head.cc -- implement Rhythmic_head
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 #include "rhythmic-head.hh"
13 #include "staff-symbol-referencer.hh"
18 Rhythmic_head::get_dots (Grob
*me
)
20 SCM s
= me
->get_grob_property ("dot");
21 return unsmob_item (s
);
25 Rhythmic_head::get_stem (Grob
*me
)
27 SCM s
= me
->get_grob_property ("stem");
28 return unsmob_item (s
);
32 Rhythmic_head::dot_count (Grob
*me
)
35 ? gh_scm2int (get_dots (me
)->get_grob_property ("dot-count")) : 0;
39 Rhythmic_head::set_dots (Grob
*me
,Item
*dot
)
41 me
->set_grob_property ("dot", dot
->self_scm ());
47 Rhythmic_head::duration_log (Grob
*me
)
49 SCM s
= me
->get_grob_property ("duration-log");
50 return gh_number_p (s
) ? gh_scm2int (s
) : 0;
55 ADD_INTERFACE (Rhythmic_head
,"rhythmic-head-interface",
57 "dot stem duration-log");