]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/grace-music.cc
* make/lilypond.fedora.spec.in (Requires): scrap kpathsea/tex
[lilypond.git] / lily / grace-music.cc
index 50c0f155f64f45c8b4d459d0974535778cd3995e..82f0206547d41ffd3dd0405ad85440d1f40293e9 100644 (file)
@@ -1,27 +1,27 @@
 /*   
-  grace-music.cc --  implement Grace_music
+     grace-music.cc --  implement Grace_music
   
-  source file of the GNU LilyPond music typesetter
+     source file of the GNU LilyPond music typesetter
   
-  (c) 1999--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+     (c) 1999--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
   
- */
+*/
 
-#include "grace-music.hh"
+#include "music.hh"
+#include "music-wrapper.hh"
 
-void
-Grace_music::compress (Moment)
+class Grace_music
 {
-  
-}
-
-Moment
-Grace_music::length_mom () const
-{
-  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) 
 {
+  Moment *l = unsmob_moment (Music_wrapper::length_callback (m));
+  Moment gl;
+  gl.grace_part_ = -(l->main_part_ + l->grace_part_ );
+  return gl.smobbed_copy ();
 }