2 meter-reg.cc -- implement Meter_engraver
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1998 Han-Wen Nienhuys <hanwen@stack.nl>
9 #include "meter-grav.hh"
11 #include "command-request.hh"
12 #include "timing-grav.hh"
13 #include "engraver-group.hh"
15 Meter_engraver::Meter_engraver()
21 Meter_engraver::do_process_requests()
24 daddy_grav_l()->get_simple_translator (Timing_engraver::static_name());
28 warning ("Lost in time: can't find Timing_translator");
32 Timing_engraver
* timing_grav_l
= (Timing_engraver
*) result
->engraver_l ();
34 Meter_change_req
*req
= timing_grav_l
->meter_req_l();
38 args
.push (req
->beats_i_
);
39 args
.push (req
->one_beat_i_
);
41 meter_p_
= new Meter (args
);
42 meter_p_
->break_priority_i_
= 1; // ugh
46 announce_element (Score_elem_info (meter_p_
, req
));
50 Meter_engraver::do_pre_move_processing()
54 typeset_element (meter_p_
);
60 ADD_THIS_TRANSLATOR(Meter_engraver
);
61 IMPLEMENT_IS_TYPE_B1(Meter_engraver
,Engraver
);