private:
bool start_new_syllable () const;
Context *find_voice ();
- DECLARE_LISTENER (set_busy);
- DECLARE_LISTENER (check_new_context);
+ void set_busy (SCM);
+ void check_new_context (SCM);
bool music_found_;
bool lyrics_found_;
associatedVoice switching, this routine may be triggered for
the wrong music_context_
*/
-IMPLEMENT_LISTENER (Lyric_combine_music_iterator, set_busy)
void
Lyric_combine_music_iterator::set_busy (SCM se)
{
if (music_context_)
{
music_context_->events_below ()->
- remove_listener (GET_LISTENER (set_busy), ly_symbol2scm ("rhythmic-event"));
+ remove_listener (GET_LISTENER (Lyric_combine_music_iterator, set_busy), ly_symbol2scm ("rhythmic-event"));
}
music_context_ = to;
if (to)
{
- to->events_below ()->add_listener (GET_LISTENER (set_busy),
+ to->events_below ()->add_listener (GET_LISTENER (Lyric_combine_music_iterator, set_busy),
ly_symbol2scm ("rhythmic-event"));
}
}
delayed when voices are created implicitly.
*/
Global_context *g = get_outlet ()->get_global_context ();
- g->events_below ()->add_listener (GET_LISTENER (check_new_context), ly_symbol2scm ("CreateContext"));
+ g->events_below ()->add_listener (GET_LISTENER (Lyric_combine_music_iterator, check_new_context), ly_symbol2scm ("CreateContext"));
/*
We do not create a Lyrics context, because the user might
*/
}
-IMPLEMENT_LISTENER (Lyric_combine_music_iterator, check_new_context)
void
Lyric_combine_music_iterator::check_new_context (SCM /*sev*/)
{