]> git.donarmstrong.com Git - lilypond.git/blob - lily/grace-music.cc
*** empty log message ***
[lilypond.git] / lily / grace-music.cc
1 /*   
2   grace-music.cc --  implement Grace_music
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1999--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #include "grace-music.hh"
11 #include "grace-iterator.hh"
12
13 void
14 Grace_music::compress (Moment m) 
15 {
16   Music_wrapper::compress (m); 
17 }
18
19 Moment
20 Grace_music::get_length () const
21 {
22   Moment m ;
23   return m;
24 }
25
26
27 Moment
28 Grace_music::start_mom () const
29 {
30   Moment l = Music_wrapper::get_length ();
31   Moment gl;
32   gl.grace_part_ = -(l.main_part_ + l.grace_part_ );
33   return gl;
34 }
35
36 Grace_music::Grace_music ()
37 {
38   set_mus_property ("iterator-ctor",
39                     Grace_iterator::constructor_proc);
40 }
41
42
43 ADD_MUSIC (Grace_music);