-void
-Score::run_translator (Music_output_def *odef)
-{
- /*
- We want to know if we want to store locations, since they take a
- lot of overhead.
- */
- store_locations_global_b = (gh_eval_str ("point-and-click") != SCM_BOOL_F);
-
- Cpu_timer timer;
- Global_translator * trans = odef->get_global_translator ();
- if (!trans)
- {
- programming_error ("no toplevel translator");
- return ;
- }
- progress_indication (_ ("Interpreting music..."));
- Music * music = unsmob_music (music_);
-
- trans->final_mom_ = music->length_mom ();
- SCM protected_iter = Music_iterator::get_static_get_iterator (music);
- Music_iterator * iter = unsmob_iterator (protected_iter);
- iter->init_translator (music, trans);