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 "dispatcher.hh"
13 #include "duration.hh"
15 #include "international.hh"
18 #include "stream-event.hh"
21 Event_chord_iterator::Event_chord_iterator ()
26 Event_chord_iterator::construct_children ()
28 Simple_music_iterator::construct_children ();
29 descend_to_bottom_context ();
33 Event_chord_iterator::process (Moment m)
35 if (last_processed_mom_ < Moment (0))
37 for (SCM s = get_music ()->get_property ("elements");
38 scm_is_pair (s); s = scm_cdr (s))
40 Music *mus = unsmob_music (scm_car (s));
43 for (SCM s = get_music ()->get_property ("events");
44 scm_is_pair (s); s = scm_cdr (s))
46 Stream_event *ev = unsmob_stream_event (scm_car (s));
47 get_outlet ()->event_source ()->broadcast (ev);
50 Simple_music_iterator::process (m);
53 IMPLEMENT_CTOR_CALLBACK (Event_chord_iterator);