2 request-chord-iterator.cc -- implement Request_chord_iterator
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 #include "translator-group.hh"
11 #include "request-chord-iterator.hh"
12 #include "music-list.hh"
18 Request_chord_iterator::construct_children()
20 elt_length_mom_ =elt_l ()->length_mom ();
21 get_req_translator_l();
25 Request_chord_iterator::elt_l () const
27 return (Request_chord*) music_l_;
30 Request_chord_iterator::Request_chord_iterator ()
37 Request_chord_iterator::ok() const
39 return (elt_length_mom_ && !last_b_) || first_b_;
43 Request_chord_iterator::next_moment() const
53 Request_chord_iterator::do_print() const
56 DEBUG_OUT << "duration: " << elt_length_mom_;
61 Request_chord_iterator::do_process_and_next (Moment mom)
65 for (SCM s = dynamic_cast<Music_sequence *> (music_l_)->music_list (); gh_pair_p (s); s = gh_cdr (s))
67 Music *mus = unsmob_music (gh_car (s));
68 if (Request * req_l = dynamic_cast<Request*> (mus))
70 bool gotcha = try_music (req_l);
72 req_l->origin ()->warning (_f ("Junking request: `%s'", classname( req_l)));
75 mus->origin ()->warning (_f ("Huh? Not a Request: `%s'",
81 if (mom >= elt_length_mom_)