2 event-chord-iterator.cc -- implement Event_chord_iterator
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 #include "event-chord-iterator.hh"
16 #include "duration.hh"
18 Event_chord_iterator::Event_chord_iterator ()
23 Event_chord_iterator::get_bottom_context ()
25 assert (get_outlet ());
26 if (get_outlet ()->is_bottom_context ())
29 set_context (get_outlet ()->get_default_interpreter ());
34 Event_chord_iterator::construct_children ()
36 Simple_music_iterator::construct_children ();
37 get_bottom_context ();
41 Event_chord_iterator::process (Moment m)
43 if (last_processed_mom_ < Moment (0))
45 for (SCM s = get_music ()->get_property ("elements");
46 scm_is_pair (s); s = scm_cdr (s))
48 Music *mus = unsmob_music (scm_car (s));
50 bool gotcha = try_music (mus);
52 mus->origin ()->warning (_f ("junking event: `%s'", mus->name ()));
55 Simple_music_iterator::process (m);
58 IMPLEMENT_CTOR_CALLBACK (Event_chord_iterator);