virtual bool try_music (Music*);
virtual void process_music ();
public:
- TRANSLATOR_DECLARATIONS(Tie_performer);
+ TRANSLATOR_DECLARATIONS (Tie_performer);
};
{
event_ = 0;
last_event_ = 0;
+ ties_created_ = false;
}
Tie_performer::process_music ()
{
if (event_)
- daddy_context_->set_property ("tieMelismaBusy", SCM_BOOL_T);
+ context ()->set_property ("tieMelismaBusy", SCM_BOOL_T);
}
void
Music * left_mus = heads_to_tie_[i].event_;
if (right_mus && left_mus
- && gh_equal_p (right_mus->get_property ("pitch"),
+ && ly_c_equal_p (right_mus->get_property ("pitch"),
left_mus->get_property ("pitch")))
{
an->tie_to (th);
+ ties_created_ = true;
}
}
}
void
Tie_performer::start_translation_timestep ()
{
- daddy_context_->set_property ("tieMelismaBusy",
- gh_bool2scm (heads_to_tie_.size ()));
+ context ()->set_property ("tieMelismaBusy",
+ ly_bool2scm (heads_to_tie_.size ()));
}
now_heads_.clear ();
}
-ENTER_DESCRIPTION(Tie_performer,
+ENTER_DESCRIPTION (Tie_performer,
/* descr */ "Generate ties between noteheads of equal pitch.",
/* creats*/ "",
/* accepts */ "tie-event",