]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/time-signature.cc
* stepmake/aclocal.m4 (STEPMAKE_KPATHSEA): Do not include
[lilypond.git] / lily / time-signature.cc
index ba2a32cf3370d51d1ea33089db0f6b86fd1842fa..93717f10e2229c115f444278000a0723311bcff9 100644 (file)
@@ -3,7 +3,7 @@
   
   source file of the GNU LilyPond music typesetter
   
-  (c) 1996--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1996--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
   
  */
 
@@ -27,7 +27,7 @@ MAKE_SCHEME_CALLBACK (Time_signature, print, 1);
 SCM
 Time_signature::print (SCM smob) 
 {
-  Grob * me = unsmob_grob (smob);
+  Grob *me = unsmob_grob (smob);
   SCM st = me->get_property ("style");
   SCM frac = me->get_property ("fraction");
   int n = 4;
@@ -40,18 +40,14 @@ Time_signature::print (SCM smob)
 
   Stencil m;
   if (st == ly_symbol2scm ("single-digit"))
-    {
-      m = numbered_time_signature (me, n, 0);
-    }
+    m = numbered_time_signature (me, n, 0);
   else if (scm_is_symbol (st))
-    {
-      m = special_time_signature (me, st, n, d);
-    }
+    m = special_time_signature (me, st, n, d);
   else
-    m = numbered_time_signature (me, n,d);
+    m = numbered_time_signature (me, n, d);
 
   if (Staff_symbol_referencer::line_count (me) % 2 == 0)
-    m.translate_axis (Staff_symbol_referencer::staff_space (me)/2 , Y_AXIS);
+    m.translate_axis (Staff_symbol_referencer::staff_space (me) / 2 , Y_AXIS);
 
   return m.smobbed_copy ();
 }
@@ -92,7 +88,7 @@ Time_signature::special_time_signature (Grob *me, SCM scm_style, int n, int d)
 }
 
 Stencil
-Time_signature::numbered_time_signature (Grob*me,int num, int den)
+Time_signature::numbered_time_signature (Grob*me, int num, int den)
 {
   SCM chain = me->get_property_alist_chain (Font_interface::text_font_alist_chain (me));
   chain = scm_cons (scm_list_1 (scm_cons (ly_symbol2scm ("font-encoding"),
@@ -113,7 +109,7 @@ Time_signature::numbered_time_signature (Grob*me,int num, int den)
   if (den)
     {
       m.add_at_edge (Y_AXIS, UP, n, 0.0, 0);
-      m.add_at_edge (Y_AXIS, DOWN, d, 0.0,0);
+      m.add_at_edge (Y_AXIS, DOWN, d, 0.0, 0);
     }
   else
     {