]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/event-chord-iterator.cc
* config.make.in (HAVE_LIBKPATHSEA_SO):
[lilypond.git] / lily / event-chord-iterator.cc
index ef045c427f8c474b70b90f0055690d54c11110a9..b48074905c90ffbf0851e50aeaae89a8e11600a3 100644 (file)
@@ -3,13 +3,13 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
+#include "event-chord-iterator.hh"
+
 #include "context.hh"
 #include "warn.hh"
-#include "event-chord-iterator.hh"
-#include "music-list.hh"
 #include "event.hh"
 
 Event_chord_iterator::Event_chord_iterator ()
@@ -34,20 +34,19 @@ Event_chord_iterator::construct_children ()
   get_req_translator ();
 }
 
-Event_chord*
+Event_chord *
 Event_chord_iterator::get_elt () const
 {
-  return (Event_chord*) get_music ();
+  return (Event_chord *) get_music ();
 }
 
-
 void
 Event_chord_iterator::process (Moment m)
 {
   if (last_processed_mom_ < Moment (0))
     {
-      for (SCM s = dynamic_cast<Music_sequence *> (get_music ())->music_list ();
-          scm_is_pair (s);  s = scm_cdr (s))
+      for (SCM s = get_music ()->get_property ("elements");
+          scm_is_pair (s); s = scm_cdr (s))
        {
          Music *mus = unsmob_music (scm_car (s));