-/*
- 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;
- }
- }
-
- timing_req_l_arr_.push(t);
- return true;
- }
- return false;
-}
-
-/*ugh.
- */
-Time_signature_change_req*
-Timing_translator::time_signature_req_l() const
-{
- Time_signature_change_req *m_l=0;
- for (int i=0; !m_l && i < timing_req_l_arr_.size (); i++)
- {
- m_l=dynamic_cast<Time_signature_change_req*> (timing_req_l_arr_[i]);
- }
- return m_l;
-}
-