-/*
- TODO: change the rest of lily, so communication with
- Timing_translator is only done through properties. This means the
- class declaration can go here. */
-
-bool
-Timing_translator::do_try_music (Music*r)
-{
- if (Timing_req *t = dynamic_cast <Timing_req *> (r))
- {
- for (int i=0; i < timing_req_l_arr_.size (); i++)
- {
- /*
- merge timing reqs.
- */
- if (timing_req_l_arr_[i]->equal_b(t))
- return true;
- if (String (classname (timing_req_l_arr_[i])) == classname (r))
- {
- r->origin ()->warning (_ ("conflicting timing request"));
- timing_req_l_arr_[i]->origin ()->warning (_("This is the other timing request"));
- return false;
- }
- }
-
- /*
- We have to do this soon enough. Maybe we'd better disguise
- \time as a \property. Then all settings will be `immediate'.
- */
- if (Time_signature_change_req *c
- = dynamic_cast <Time_signature_change_req *> (t))
- set_time_signature (c->beats_i_, c->one_beat_i_);
-
- timing_req_l_arr_.push(t);
- return true;
- }
- return false;
-}
-