]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/slash-repeat-engraver.cc
* flower/include/offset.hh (class Offset): new operator /=
[lilypond.git] / lily / slash-repeat-engraver.cc
index 8cd9bc76c15918c5ab09a838011ec3d2800fa1d4..ab1425cfd41e64998fcd264be98fd0d198f0c0e3 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2000--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 2000--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include "repeated-music.hh"
@@ -46,8 +46,8 @@ protected:
   Item *double_percent_;
 protected:
   virtual bool try_music (Music *);
-  PRECOMPUTED_VIRTUAL void start_translation_timestep ();
-  PRECOMPUTED_VIRTUAL void process_music ();
+  void start_translation_timestep ();
+  void process_music ();
 };
 
 Slash_repeat_engraver::Slash_repeat_engraver ()
@@ -75,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;
 
@@ -107,18 +105,15 @@ void
 Slash_repeat_engraver::start_translation_timestep ()
 {
   if (stop_mom_ == now_mom ())
-    {
-      repeat_ = 0;
-    }
+    repeat_ = 0;
   beat_slash_ = 0;
 }
 
-
 #include "translator.icc"
 
 ADD_TRANSLATOR (Slash_repeat_engraver,
-               /* descr */ "Make beat repeats.",
-               /* creats*/ "RepeatSlash",
-               /* accepts */ "repeated-music",
-               /* reads */ "measureLength",
+               /* doc */ "Make beat repeats.",
+               /* creat*/ "RepeatSlash",
+               /* accept */ "repeated-music",
+               /* read */ "measureLength",
                /* write */ "");