]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/piano-pedal-performer.cc
* lily/dots.cc (print): replace -
[lilypond.git] / lily / piano-pedal-performer.cc
index f9b1aca616ec35d5d419cc26e901548166a2357e..66ff9516716714cd0e396717f10c29dae0042f6d 100644 (file)
@@ -7,8 +7,6 @@
 */
 
 #include "performer.hh"
-
-#include "event.hh"
 #include "audio-item.hh"
 
 /**
@@ -24,7 +22,7 @@ class Piano_pedal_performer : public Performer
   };
 
 public:
-  TRANSLATOR_DECLARATIONS(Piano_pedal_performer);
+  TRANSLATOR_DECLARATIONS (Piano_pedal_performer);
   ~Piano_pedal_performer ();
   
 protected:
@@ -107,7 +105,7 @@ Piano_pedal_performer::create_audio_elements ()
 void
 Piano_pedal_performer::stop_translation_timestep ()
 {
-  for (int i=0; i< audios_.size (); i++)
+  for (int i = 0; i< audios_.size (); i++)
     play_element (audios_[i]);
   audios_.clear ();
 }
@@ -130,8 +128,8 @@ Piano_pedal_performer::try_music (Music* r)
       for (Pedal_info*p = info_alist_; p->name_; p ++)
        {
          String nm = p->name_ + String ("Event");
-         if (gh_equal_p (r->get_property ("name") ,
-                         scm_makfrom0str (nm.to_str0())))
+         if (ly_c_equal_p (r->get_property ("name") ,
+                         scm_str2symbol (nm.to_str0())))
            {
              Direction d = to_dir (r->get_property ("span-direction"));
              p->req_l_drul_[d] = r;
@@ -142,6 +140,6 @@ Piano_pedal_performer::try_music (Music* r)
   return false;
 }
 
-ENTER_DESCRIPTION (Piano_pedal_performer, "","",
+ADD_TRANSLATOR (Piano_pedal_performer, "","",
                   "pedal-event",
                   "","","" );