]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/music.cc
* The grand 2005-2006 replace.
[lilypond.git] / lily / music.cc
index e8e054311d5f12be0ae5e20af6232b1ec873c2b7..fddd57fd0a18010235af349c32fe12eb37d5a6da 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include "music.hh"
@@ -36,13 +36,9 @@ Music::name () const
 {
   SCM nm = get_property ("name");
   if (scm_is_symbol (nm))
-    {
-      return ly_symbol2string (nm);
-    }
+    return ly_symbol2string (nm);
   else
-    {
-      return classname (this);
-    }
+    return "Music";
 }
 
 Music::Music (SCM init)
@@ -54,9 +50,7 @@ Music::Music (SCM init)
 
   length_callback_ = get_property ("length-callback");
   if (!ly_is_procedure (length_callback_))
-    {
-      length_callback_ = duration_length_callback_proc;
-    }
+    length_callback_ = duration_length_callback_proc;
 
   start_callback_ = get_property ("start-callback");
 }
@@ -148,7 +142,7 @@ Music::print_smob (SCM s, SCM p, scm_print_state*)
   if (scm_is_symbol (nm) || scm_is_string (nm))
     scm_display (nm, p);
   else
-    scm_puts (classname (m), p);
+    scm_puts ("Music", p);
 
   /* Printing properties takes a lot of time, especially during backtraces.
      For inspecting, it is better to explicitly use an inspection
@@ -256,9 +250,7 @@ Music::transpose (Pitch delta)
   */
   SCM pa = get_property ("pitch-alist");
   if (scm_is_pair (pa))
-    {
-      set_property ("pitch-alist", ly_transpose_key_alist (pa, delta.smobbed_copy ()));
-    }
+    set_property ("pitch-alist", ly_transpose_key_alist (pa, delta.smobbed_copy ()));
 }
 
 IMPLEMENT_TYPE_P (Music, "ly:music?");
@@ -332,8 +324,6 @@ Music::duration_length_callback (SCM m)
 
   Moment mom;
   if (d)
-    {
-      mom = d->get_length ();
-    }
+    mom = d->get_length ();
   return mom.smobbed_copy ();
 }