2 time_signature-performer.cc -- implement Time_signature_performer
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1998 Jan Nieuwenhuizen <janneke@gnu.org>
9 #include "time-signature-performer.hh"
10 #include "command-request.hh"
11 #include "audio-item.hh"
14 ADD_THIS_TRANSLATOR(Time_signature_performer);
16 Time_signature_performer::Time_signature_performer()
18 time_signature_req_l_ = 0;
21 Time_signature_performer::~Time_signature_performer()
26 Time_signature_performer::do_print() const
29 if (time_signature_req_l_)
30 time_signature_req_l_->print();
35 Time_signature_performer::do_process_requests()
37 if (time_signature_req_l_)
38 play (new Audio_time_signature (time_signature_req_l_));
39 time_signature_req_l_ = 0;
43 Time_signature_performer::do_try_music (Music* req_l)
45 if (time_signature_req_l_)
48 if (dynamic_cast <Command_req *> (req_l))
49 time_signature_req_l_ = dynamic_cast <Time_signature_change_req *> (req_l);
51 if (time_signature_req_l_)