2 timing-grav.cc -- implement Timing_engraver
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 #include "score-engraver.hh"
10 #include "timing-engraver.hh"
11 #include "command-request.hh"
12 #include "score-element-info.hh"
13 #include "multi-measure-rest.hh"
17 ADD_THIS_TRANSLATOR(Timing_engraver
);
21 Timing_engraver::do_post_move_processing( )
24 Timing_translator::do_post_move_processing ();
28 Timing_engraver::do_try_music (Music
*m
)
30 if (Bar_req
* b
= dynamic_cast <Bar_req
*> (m
))
32 if (bar_req_l_
&& bar_req_l_
->equal_b (b
)) // huh?
39 return Timing_translator::do_try_music (m
);
44 Timing_engraver::which_bar ()
51 SCM nonauto
= get_property ("barNonAuto", 0);
52 if (!gh_boolean_p (nonauto
) && gh_scm2bool (nonauto
))
54 SCM always
= get_property ("barAlways", 0);
55 if (!measure_position ()
56 || (gh_boolean_p (always
) && gh_scm2bool (always
)))
58 SCM def
=get_property ("defaultBarType" ,0);
59 return (gh_string_p (def
))? ly_scm2string (def
) : "";
66 return bar_req_l_
->type_str_
;