2002->2003
[lilypond.git] / lily / grace-music.cc
blob946476954a29db207f6f4850a1ed04b6fba74409
1 /*
2 grace-music.cc -- implement Grace_music
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
8 */
10 #include "grace-music.hh"
11 #include "grace-iterator.hh"
13 void
14 Grace_music::compress (Moment m)
16 Music_wrapper::compress (m);
19 Moment
20 Grace_music::get_length () const
22 Moment m ;
23 return m;
27 Moment
28 Grace_music::start_mom () const
30 Moment l = Music_wrapper::get_length ();
31 Moment gl;
32 gl.grace_part_ = -(l.main_part_ + l.grace_part_ );
33 return gl;
36 Grace_music::Grace_music ()
38 set_mus_property ("iterator-ctor",
39 Grace_iterator::constructor_proc);
43 ADD_MUSIC (Grace_music);