]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/tuplet-engraver.cc
``slikken kreng''
[lilypond.git] / lily / tuplet-engraver.cc
index e0ba3e4d2ad77618d673279156020e706fc4d522..2f4b38ffd4be0b995a32c13063b954512ab086be 100644 (file)
@@ -23,14 +23,14 @@ public:
   TRANSLATOR_DECLARATIONS(Tuplet_engraver);
 
 protected:
-  Link_array<Time_scaled_music> time_scaled_music_arr_;
-  /// when does the scaled music stop? Array order is synced with time_scaled_music_arr_
+  Link_array<Time_scaled_music> time_scaled_musics_;
+  /// when does the scaled music stop? Array order is synced with time_scaled_musics_
   Array<Rational> stop_moments_;
-  /// when does the current spanner stop? Array order is synced with time_scaled_music_arr_
+  /// when does the current spanner stop? Array order is synced with time_scaled_musics_
   Array<Rational> span_stop_moments_;
   
-  /// The spanners. Array order is synced with time_scaled_music_arr_
-  Link_array<Spanner> started_span_p_arr_;
+  /// The spanners. Array order is synced with time_scaled_musics_
+  Link_array<Spanner> started_spanners_;
 
   virtual void finalize ();
   virtual void acknowledge_grob (Grob_info);
@@ -47,7 +47,7 @@ Tuplet_engraver::try_music (Music *r)
       Music *el = c->element ();
       if (!dynamic_cast<Request_chord*> (el))
        {
-         time_scaled_music_arr_.push (c);
+         time_scaled_musics_.push (c);
          Rational m = now_mom ().main_part_ + c->length_mom ().main_part_;
          stop_moments_.push (m);
 
@@ -69,38 +69,38 @@ Tuplet_engraver::process_acknowledged_grobs ()
   if (to_boolean (v))
     return;
 
-  for (int i= 0; i < time_scaled_music_arr_.size (); i++)
+  for (int i= 0; i < time_scaled_musics_.size (); i++)
     {
-      if (i < started_span_p_arr_.size () && started_span_p_arr_[i])
+      if (i < started_spanners_.size () && started_spanners_[i])
        continue;
 
       Spanner* glep = new Spanner (get_property ("TupletBracket"));
 
-      if (i >= started_span_p_arr_.size ())
-       started_span_p_arr_.push (glep);
+      if (i >= started_spanners_.size ())
+       started_spanners_.push (glep);
       else
-       started_span_p_arr_[i] = glep;
+       started_spanners_[i] = glep;
       
 
       SCM proc = get_property ("tupletNumberFormatFunction");
       if (gh_procedure_p (proc))
        {
-         SCM t = gh_apply (proc, scm_list_n (time_scaled_music_arr_[i]->self_scm (), SCM_UNDEFINED));
+         SCM t = gh_apply (proc, scm_list_n (time_scaled_musics_[i]->self_scm (), SCM_UNDEFINED));
          glep->set_grob_property ("text", t);
        }
       
-      announce_grob(glep, time_scaled_music_arr_ [i]->self_scm());
+      announce_grob(glep, time_scaled_musics_ [i]->self_scm());
     }
 }
 
 void
 Tuplet_engraver::acknowledge_grob (Grob_info i)
 {
-  if (Note_column::has_interface (i.grob_l_))
+  if (Note_column::has_interface (i.grob_))
     {
-      for (int j =0; j  <started_span_p_arr_.size (); j++)
-       if (started_span_p_arr_[j]) 
-         Tuplet_bracket::add_column (started_span_p_arr_[j], dynamic_cast<Item*> (i.grob_l_));
+      for (int j =0; j  <started_spanners_.size (); j++)
+       if (started_spanners_[j]) 
+         Tuplet_bracket::add_column (started_spanners_[j], dynamic_cast<Item*> (i.grob_));
     }
 }
 
@@ -114,14 +114,14 @@ Tuplet_engraver::start_translation_timestep ()
   if (unsmob_moment (s))
     tsd = unsmob_moment (s)->main_part_;
 
-  for (int i= started_span_p_arr_.size (); i--;)
+  for (int i= started_spanners_.size (); i--;)
     {
       if (now.main_part_ >= span_stop_moments_[i])
        {
-         if (started_span_p_arr_[i])
+         if (started_spanners_[i])
            {
-             typeset_grob (started_span_p_arr_[i]);
-             started_span_p_arr_[i] =0;
+             typeset_grob (started_spanners_[i]);
+             started_spanners_[i] =0;
            }
          
          if (tsd.to_bool ())
@@ -130,10 +130,10 @@ Tuplet_engraver::start_translation_timestep ()
 
       if (now.main_part_ >= stop_moments_[i])
        {
-         started_span_p_arr_.del (i);
+         started_spanners_.del (i);
          stop_moments_.del (i);
          span_stop_moments_.del (i);
-         time_scaled_music_arr_.del (i);
+         time_scaled_musics_.del (i);
        }
     }
 }
@@ -141,10 +141,10 @@ Tuplet_engraver::start_translation_timestep ()
 void
 Tuplet_engraver::finalize ()
 {
-  for (int i=0; i < started_span_p_arr_.size (); i++)
+  for (int i=0; i < started_spanners_.size (); i++)
     {
-      if (started_span_p_arr_[i])
-       typeset_grob (started_span_p_arr_[i]);
+      if (started_spanners_[i])
+       typeset_grob (started_spanners_[i]);
     }  
 }