2 event-chord-iterator.cc -- implement Event_chord_iterator
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
9 #include "event-chord-iterator.hh"
12 #include "duration.hh"
14 #include "international.hh"
19 Event_chord_iterator::Event_chord_iterator ()
24 Event_chord_iterator::get_bottom_context ()
26 assert (get_outlet ());
27 if (get_outlet ()->is_bottom_context ())
30 set_context (get_outlet ()->get_default_interpreter ());
35 Event_chord_iterator::construct_children ()
37 Simple_music_iterator::construct_children ();
38 get_bottom_context ();
42 Event_chord_iterator::process (Moment m)
44 if (last_processed_mom_ < Moment (0))
46 for (SCM s = get_music ()->get_property ("elements");
47 scm_is_pair (s); s = scm_cdr (s))
49 Music *mus = unsmob_music (scm_car (s));
51 bool gotcha = try_music (mus);
53 mus->origin ()->warning (_f ("junking event: `%s'", mus->name ()));
56 Simple_music_iterator::process (m);
59 IMPLEMENT_CTOR_CALLBACK (Event_chord_iterator);