]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/slash-repeat-engraver.cc
(GUILE_ELLIPSIS): define to get clean
[lilypond.git] / lily / slash-repeat-engraver.cc
index 25430d0acee24eb0b37ad475bcfe9d0ed58771c3..92115d3904018dd4f1c135080ba117fc363bfa73 100644 (file)
@@ -46,9 +46,8 @@ protected:
   Item *double_percent_;
 protected:
   virtual bool try_music (Music *);
-  virtual void stop_translation_timestep ();
-  virtual void start_translation_timestep ();
-  virtual void process_music ();
+  void start_translation_timestep ();
+  void process_music ();
 };
 
 Slash_repeat_engraver::Slash_repeat_engraver ()
@@ -76,9 +75,7 @@ Slash_repeat_engraver::try_music (Music *m)
       Moment meas_length
        = robust_scm2moment (get_property ("measureLength"), Moment (0));
       if (body_length_ < meas_length)
-       {
-         repeat_ = m;
-       }
+       repeat_ = m;
       else
        return false;
 
@@ -108,22 +105,15 @@ void
 Slash_repeat_engraver::start_translation_timestep ()
 {
   if (stop_mom_ == now_mom ())
-    {
-      repeat_ = 0;
-    }
-}
-
-void
-Slash_repeat_engraver::stop_translation_timestep ()
-{
+    repeat_ = 0;
   beat_slash_ = 0;
 }
 
+#include "translator.icc"
 
 ADD_TRANSLATOR (Slash_repeat_engraver,
-               /* descr */ "Make beat repeats.",
-               /* creats*/ "RepeatSlash",
-               /* accepts */ "repeated-music",
-               /* acks  */ "",
-               /* reads */ "measureLength",
+               /* doc */ "Make beat repeats.",
+               /* create */ "RepeatSlash",
+               /* accept */ "repeated-music",
+               /* read */ "measureLength",
                /* write */ "");