2 compressed-music-iterator.cc -- implement Compressed_music_iterator
4 source file of the GNU LilyPond music typesetter
6 (c) 1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #include "compressed-music-iterator.hh"
11 #include "compressed-music.hh"
12 #include "musical-request.hh"
13 #include "translator-group.hh"
14 #include "command-request.hh"
18 Compressed_music_iterator::Compressed_music_iterator ()
21 pr.spantype = Span_req::START;
23 start_req_p_ = new Bracket_req (pr);
24 pr.spantype = Span_req::STOP;
25 stop_req_p_ =new Bracket_req (pr);
28 Compressed_music_iterator::~Compressed_music_iterator ()
35 Compressed_music_iterator::compressed_l () const
37 return (Compressed_music*) music_l_;
41 Compressed_music_iterator::construct_children ()
44 start_req_p_->plet_i_ = compressed_l ()->den_i_;
45 stop_req_p_->plet_i_ = compressed_l ()->den_i_;
47 Music_wrapper_iterator::construct_children ();
51 Compressed_music_iterator::do_process_and_next (Moment m)
55 bool success = report_to_l ()->try_music (compressed_l ());
57 music_l_->warning ( _("No one to print a tuplet start bracket"));
60 Music_wrapper_iterator::do_process_and_next (m);