]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/grace-music.cc
Run `make grand-replace'.
[lilypond.git] / lily / grace-music.cc
index 532bd07aaf8494eaca9c8f5ef1287feb9bf171f0..899dae7dcff1c55e582e93133db6da566845cc24 100644 (file)
@@ -1,28 +1,26 @@
-/*   
-  grace-music.cc --  implement Grace_music
-  
+/*
+  grace-music.cc -- implement Grace_music
+
   source file of the GNU LilyPond music typesetter
-  
-  (c) 1999--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
-  
- */
 
-#include "grace-music.hh"
+  (c) 1999--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
+*/
 
-void
-Grace_music::compress (Moment)
-{
-  
-}
+#include "music.hh"
+#include "music-wrapper.hh"
 
-Moment
-Grace_music::length_mom () const
+class Grace_music
 {
-  return 0;
-}
+public:
+  DECLARE_SCHEME_CALLBACK (start_callback, (SCM));
+};
 
-Grace_music::Grace_music (Music *p)
-  : Music_wrapper (p)
+MAKE_SCHEME_CALLBACK (Grace_music, start_callback, 1);
+SCM
+Grace_music::start_callback (SCM m)
 {
-  set_mus_property ("type", ly_symbol2scm ("grace-music"));
+  Moment *l = unsmob_moment (Music_wrapper::length_callback (m));
+  Moment gl;
+  gl.grace_part_ = -(l->main_part_ + l->grace_part_);
+  return gl.smobbed_copy ();
 }