source file of the GNU LilyPond music typesetter
- (c) 1999--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1999--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include "grace-music.hh"
#include "grace-iterator.hh"
-void
-Grace_music::compress (Moment)
+
+
+Moment
+Grace_music::get_length () const
{
-
+ Moment m;
+ return m;
}
+
Moment
-Grace_music::length_mom () const
+Grace_music::start_mom () const
{
- return 0;
+ Moment l = Music_wrapper::get_length ();
+ Moment gl;
+ gl.grace_part_ = -(l.main_part_ + l.grace_part_ );
+ return gl;
}
-Grace_music::Grace_music (Music *p)
- : Music_wrapper (p)
+Grace_music::Grace_music ()
{
- set_mus_property ("type",
- Grace_iterator::constructor_cxx_function);
+ set_mus_property ("iterator-ctor",
+ Grace_iterator::constructor_proc);
}
+
+
+ADD_MUSIC (Grace_music);