2 meterreg.cc -- implement Meter_register
4 source file of the LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
11 #include "commandrequest.hh"
13 Meter_register::Meter_register(Complex_walker
*w
)
16 do_post_move_process();
20 Meter_register::try_request(Request
*r_l
)
22 if (!r_l
->command()->meterchange())
25 assert(!meter_req_l_
);
26 meter_req_l_
= r_l
->command()->meterchange();
32 Meter_register::process_request()
36 args
.push(meter_req_l_
->beats_i_
);
37 args
.push(meter_req_l_
->one_beat_i_
);
39 meter_p_
= new Meter(args
);
43 announce_element(Staff_elem_info(meter_p_
, meter_req_l_
, this) );
47 Meter_register::do_pre_move_process()
50 Meter
* post_p
=new Meter(*meter_p_
);
51 Meter
* pre_p
=new Meter(*meter_p_
);
53 typeset_breakable_item(pre_p
, meter_p_
, post_p
);
59 Meter_register::do_post_move_process()