/*
head-grav.cc -- part of GNU LilyPond
- (c) 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include "note-head.hh"
if (Note_req * n =dynamic_cast <Note_req *> (m))
{
note_req_l_arr_.push (n);
- notes_end_pq_.insert (now_mom () + m->length_mom ());
+ note_end_mom_ = note_end_mom_ >? now_mom () + m->length_mom ();
return true;
}
}
else if (Busy_playing_req * p = dynamic_cast<Busy_playing_req*> (m))
{
- return notes_end_pq_.size ();
+ return now_mom () < note_end_mom_;
}
else if (Pitch_interrogate_req *p = dynamic_cast<Pitch_interrogate_req*> (m))
{
}
void
-Note_heads_engraver::do_process_requests()
+Note_heads_engraver::do_process_music()
{
if (note_p_arr_.size ())
return ;
- SCM noteheadstyle = get_property ("noteHeadStyle", 0);
+ SCM noteheadstyle = get_property ("noteHeadStyle");
for (int i=0; i < note_req_l_arr_.size (); i++)
{
Note_head *note_p = new Note_head;
sd.set_interface ();
note_p->add_dots (d);
- d->dots_i_ = note_req_l->duration_.dots_i_;
+ d->set_elt_property ("dot-count", gh_int2scm (note_req_l->duration_.dots_i_));
announce_element (Score_element_info (d,0));
dot_p_arr_.push (d);
}
note_req_l_arr_.clear ();
}
-void
-Note_heads_engraver::do_post_move_processing()
-{
- Moment n (now_mom ());
- while (notes_end_pq_.size () && notes_end_pq_.front () <=n)
- notes_end_pq_.get ();
-}