source file of the GNU LilyPond music typesetter
- (c) 1998--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1998--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include "context.hh"
#include "audio-item.hh"
-#include "event.hh"
#include "pqueue.hh"
#include "performer.hh"
TRANSLATOR_DECLARATIONS (Tie_performer);
};
-
-
Tie_performer::Tie_performer ()
{
event_ = 0;
ties_created_ = false;
}
-
bool
Tie_performer::try_music (Music *mus)
{
Tie_performer::process_music ()
{
if (event_)
- get_parent_context ()->set_property ("tieMelismaBusy", SCM_BOOL_T);
+ context ()->set_property ("tieMelismaBusy", SCM_BOOL_T);
}
void
if (right_mus && left_mus
&& ly_c_equal_p (right_mus->get_property ("pitch"),
- left_mus->get_property ("pitch")))
+ left_mus->get_property ("pitch")))
{
an->tie_to (th);
ties_created_ = true;
void
Tie_performer::start_translation_timestep ()
{
- get_parent_context ()->set_property ("tieMelismaBusy",
- ly_bool2scm (heads_to_tie_.size ()));
+ context ()->set_property ("tieMelismaBusy",
+ ly_bool2scm (heads_to_tie_.size ()));
}
{
heads_to_tie_.clear ();
last_event_ = 0;
+ ties_created_ = false;
}
if (event_)
now_heads_.clear ();
}
-ENTER_DESCRIPTION (Tie_performer,
+ADD_TRANSLATOR (Tie_performer,
/* descr */ "Generate ties between noteheads of equal pitch.",
/* creats*/ "",
/* accepts */ "tie-event",