]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/score.cc
patch::: 1.3.9.hwn2
[lilypond.git] / lily / score.cc
index bda4e464dff910ffa9ddd293f9095a12f7fcf467..cc73e09c1c8b264b562ec8f347fe0b795b074815 100644 (file)
@@ -36,7 +36,7 @@ Score::Score (Score const &s)
   for (int i=0; i < s.def_p_arr_.size (); i++)
     def_p_arr_.push(s.def_p_arr_[i]->clone());
   errorlevel_i_ = s.errorlevel_i_;
-  header_p_ =  (s.header_p_) ? new Header (*s.header_p_): 0;
+  header_p_ =  (s.header_p_) ? new Scope (*s.header_p_): 0;
 }
 
 Score::~Score()
@@ -57,7 +57,8 @@ Score::run_translator (Music_output_def *odef_l)
       return ;
     }
   *mlog << '\n' << _("Interpreting music...") << flush;
-  trans_p->last_mom_ = music_p_->length_mom ();
+  trans_p->final_mom_ = music_p_->length_mom ();
+
 
   Music_iterator * iter = Music_iterator::static_get_iterator_p (music_p_);
   iter->init_translator(music_p_, trans_p);
@@ -67,7 +68,7 @@ Score::run_translator (Music_output_def *odef_l)
   if (! iter->ok())
     {
       delete iter;
-      warning (_("need music in a score"));
+      warning (_("Need music in a score"));
       errorlevel_i_ =1;
       return ;
     }
@@ -80,12 +81,12 @@ Score::run_translator (Music_output_def *odef_l)
   if (errorlevel_i_)
     {
       // should we? hampers debugging.
-      warning (_ ("errors found, /*not processing score*/"));
+      warning (_ ("Errors found/*, not processing score*/"));
     }
 
   Music_output * output = trans_p->get_output_p();
   delete trans_p;
-  *mlog << endl << _f ("time: %.2f seconds",  timer.read ()) << flush;
+  *mlog << endl << _f ("elapsed time: %.2f seconds",  timer.read ()) << flush;
 
   output->header_l_ = header_p_;
   output->origin_str_ =  location_str();
@@ -117,11 +118,11 @@ void
 Score::print() const
 {
 #ifndef NPRINT
-  DOUT << "score {\n";
+  DEBUG_OUT << "score {\n";
   music_p_ -> print ();
   for (int i=0; i < def_p_arr_.size (); i++)
     def_p_arr_[i]->print();
-  DOUT << "}\n";
+  DEBUG_OUT << "}\n";
 #endif
 }