lilypond-1.5.9
[lilypond.git] / lily / grace-music.cc
blob8fd0ff0d0b8c6cb0ab8da2346de6cec0bf2b8dd3
1 /*
2 grace-music.cc -- implement Grace_music
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2001 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::length_mom () const
22 Moment m ;
23 return m;
27 Moment
28 Grace_music::start_mom () const
30 Moment l = Music_wrapper::length_mom ();
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_cxx_function);
42 Grace_music::Grace_music (SCM p)
43 : Music_wrapper (p)
45 set_mus_property ("iterator-ctor",
46 Grace_iterator::constructor_cxx_function);
49 ADD_MUSIC (Grace_music);