]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/tie-performer.cc
*** empty log message ***
[lilypond.git] / lily / tie-performer.cc
index bfb0435eeacae31f50eea602839b5954e7a52165..a90d4bab1e352bfd239c9cb74ede4726c834a3de 100644 (file)
@@ -29,7 +29,7 @@ protected:
   virtual bool try_music (Music*);
   virtual void process_music ();
 public:
-  TRANSLATOR_DECLARATIONS(Tie_performer);
+  TRANSLATOR_DECLARATIONS (Tie_performer);
 };
 
 
@@ -38,6 +38,7 @@ Tie_performer::Tie_performer ()
 {
   event_ = 0;
   last_event_  = 0;
+  ties_created_ = false;
 }
 
 
@@ -56,7 +57,7 @@ void
 Tie_performer::process_music ()
 {
   if (event_)
-    daddy_context_->set_property ("tieMelismaBusy", SCM_BOOL_T);
+    context ()->set_property ("tieMelismaBusy", SCM_BOOL_T);
 }
 
 void
@@ -73,10 +74,11 @@ Tie_performer::acknowledge_audio_element (Audio_element_info inf)
          Music * left_mus = heads_to_tie_[i].event_;
 
          if (right_mus && left_mus
-             && gh_equal_p (right_mus->get_property ("pitch"),
+             && ly_c_equal_p (right_mus->get_property ("pitch"),
                             left_mus->get_property ("pitch")))
            {
              an->tie_to (th);
+             ties_created_ = true;  
            }
        }
     }
@@ -85,8 +87,8 @@ Tie_performer::acknowledge_audio_element (Audio_element_info inf)
 void
 Tie_performer::start_translation_timestep ()
 {
-  daddy_context_->set_property ("tieMelismaBusy",
-                             gh_bool2scm (heads_to_tie_.size ()));
+  context ()->set_property ("tieMelismaBusy",
+                             ly_bool2scm (heads_to_tie_.size ()));
       
 }
 
@@ -108,7 +110,7 @@ Tie_performer::stop_translation_timestep ()
   now_heads_.clear ();
 }
 
-ENTER_DESCRIPTION(Tie_performer,
+ENTER_DESCRIPTION (Tie_performer,
 /* descr */       "Generate ties between noteheads of equal pitch.",
 /* creats*/       "",
 /* accepts */     "tie-event",