release commit
[lilypond.git] / lily / grace-iterator.cc
blob325a0d5207fe45940a4e8165ae57f7142a9ae1af
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"
14 #include "global-translator.hh"
15 #include "warn.hh"
17 void
18 Grace_iterator::process (Moment m)
20 Moment main ;
21 main.main_part_ = - start_mom_.grace_part_ + m.grace_part_;
22 Music_wrapper_iterator::process (main);
25 Moment
26 Grace_iterator::pending_moment () const
28 Moment cp =Music_wrapper_iterator::pending_moment();
30 Moment pending;
31 pending.grace_part_ = start_mom_.grace_part_ + cp.main_part_;
33 return pending;
37 IMPLEMENT_CTOR_CALLBACK (Grace_iterator);