diff options
Diffstat (limited to 'lily/laissez-vibrer-engraver.cc')
-rw-r--r-- | lily/laissez-vibrer-engraver.cc | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/lily/laissez-vibrer-engraver.cc b/lily/laissez-vibrer-engraver.cc index 4568dd19e4..cfc331da0c 100644 --- a/lily/laissez-vibrer-engraver.cc +++ b/lily/laissez-vibrer-engraver.cc @@ -11,20 +11,20 @@ #include "engraver.hh" #include "item.hh" #include "pointer-group-interface.hh" +#include "stream-event.hh" #include "translator.icc" class Laissez_vibrer_engraver : public Engraver { - - Music *event_; + Stream_event *event_; Grob *lv_column_; vector<Grob*> lv_ties_; void stop_translation_timestep (); DECLARE_ACKNOWLEDGER (note_head); - - virtual bool try_music (Music *); +protected: + DECLARE_TRANSLATOR_LISTENER (laissez_vibrer); public: TRANSLATOR_DECLARATIONS (Laissez_vibrer_engraver); }; @@ -43,11 +43,11 @@ Laissez_vibrer_engraver::stop_translation_timestep () lv_ties_.clear (); } -bool -Laissez_vibrer_engraver::try_music (Music *m) +IMPLEMENT_TRANSLATOR_LISTENER (Laissez_vibrer_engraver, laissez_vibrer); +void +Laissez_vibrer_engraver::listen_laissez_vibrer (Stream_event *ev) { - event_ = m; - return true; + ASSIGN_EVENT_ONCE (event_, ev); } void @@ -71,8 +71,6 @@ Laissez_vibrer_engraver::acknowledge_note_head (Grob_info inf) lv_ties_.push_back (lv_tie); } - - ADD_ACKNOWLEDGER (Laissez_vibrer_engraver, note_head); ADD_TRANSLATOR (Laissez_vibrer_engraver, /* doc */ "Create Laissez vibrer items.", |