]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/timing-translator.cc
* scm/music-functions.scm (has-request-chord): don't use
[lilypond.git] / lily / timing-translator.cc
index 304be3699c5d09054ab3d90b0917f27310b69564..16c7b6d2bb56f10f697398bc6b70cea18a889873 100644 (file)
@@ -4,7 +4,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #include "timing-translator.hh"
@@ -59,7 +59,7 @@ Timing_translator::initialize ()
     context.
    */
   context ()->set_property ("measureLength", Moment (Rational (1)).smobbed_copy ());
-  context ()->set_property ("beatLength", Moment (Rational (1,4)).smobbed_copy ());
+  context ()->set_property ("beatLength", Moment (Rational (1, 4)).smobbed_copy ());
 }
 
 Rational
@@ -82,7 +82,7 @@ Timing_translator::measure_position () const
 {
   SCM sm = get_property ("measurePosition");
   
-  Moment m   =0;
+  Moment m   = 0;
   if (unsmob_moment (sm))
     {
       m = *unsmob_moment (sm);
@@ -96,7 +96,7 @@ Timing_translator::measure_position () const
 void
 Timing_translator::start_translation_timestep ()
 {
-  Global_context *global =get_global_context ();
+  Global_context *global = get_global_context ();
 
   Moment now = global->now_mom ();
   Moment dt = now  - global->previous_moment ();
@@ -138,7 +138,7 @@ Timing_translator::start_translation_timestep ()
     }
 
   SCM cad = get_property ("timing");
-  bool c= to_boolean (cad);
+  bool c = to_boolean (cad);
 
   Rational len = measure_length ();
   while (c && measposp.main_part_ >= len)
@@ -151,9 +151,9 @@ Timing_translator::start_translation_timestep ()
   context ()->set_property ("measurePosition", measposp.smobbed_copy ());
 }
 
-ENTER_DESCRIPTION (Timing_translator,
+ADD_TRANSLATOR (Timing_translator,
                   "This engraver adds the alias "
                   "@code{Timing} to its containing context."
                   ,
 
-                  "","","","","");
+                  "", "", "", "", "");