2 grace-music.cc -- implement Grace_music
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #include "grace-music.hh"
11 #include "grace-iterator.hh"
14 #include "global-context.hh"
18 Grace_iterator::process (Moment m
)
21 main
.main_part_
= - start_mom_
.grace_part_
+ m
.grace_part_
;
22 Music_wrapper_iterator::process (main
);
25 We can safely do this, since \grace should always be inside
28 descend_to_child (child_iter_
->get_outlet ());
32 Grace_iterator::pending_moment () const
34 Moment cp
=Music_wrapper_iterator::pending_moment ();
37 pending
.grace_part_
= start_mom_
.grace_part_
+ cp
.main_part_
;
43 IMPLEMENT_CTOR_CALLBACK (Grace_iterator
);