lilypond-1.5.9
[lilypond.git] / lily / new-grace-iterator.cc
blob99cd02e6ac627700e9c6c5d63828ab522118e98b
1 /*
2 new-grace-music.cc -- implement New-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 "new-grace-music.hh"
11 #include "new-grace-iterator.hh"
13 #include "grace-iterator.hh"
14 #include "global-translator.hh"
15 #include "warn.hh"
18 New_grace_iterator::~New_grace_iterator ()
20 // child_iter_p_ = 0;
24 void
25 New_grace_iterator::process (Moment m )
27 Moment main ;
28 main.main_part_ = m.grace_mom_;
29 Music_wrapper_iterator::process (main);
32 void
33 New_grace_iterator::construct_children ()
35 Music_wrapper_iterator::construct_children ();
40 Moment
41 New_grace_iterator::pending_moment () const
43 Moment cp =Music_wrapper_iterator::pending_moment();
45 Moment pending;
46 pending.grace_mom_ = - music_length_.main_part_ + cp.main_part_;
48 return pending;
52 IMPLEMENT_CTOR_CALLBACK (New_grace_iterator);