X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fnote-performer.cc;h=a8326dab36277406c3ac2a5a183b959c48d30add;hb=108cf0e8c08c8e15e2a800feb161cfad9057daa8;hp=3bdbcb0df33d4396c6e86dc0c92ca4d672b8801a;hpb=58bcc84c9480dae1b21bc24d8396b91fe19e0131;p=lilypond.git diff --git a/lily/note-performer.cc b/lily/note-performer.cc index 3bdbcb0df3..a8326dab36 100644 --- a/lily/note-performer.cc +++ b/lily/note-performer.cc @@ -11,6 +11,7 @@ #include "audio-column.hh" #include "global-context.hh" #include "warn.hh" +#include "music.hh" /** Convert evs to audio notes. @@ -23,7 +24,7 @@ public: protected: virtual bool try_music (Music *ev); - virtual void stop_translation_timestep (); + void stop_translation_timestep (); virtual void create_audio_elements (); private: @@ -66,9 +67,7 @@ Note_performer::stop_translation_timestep () // --> grace notes effectively do not get delayed Moment now = now_mom (); for (int i = 0; i < notes_.size (); i++) - { - play_element (notes_[i]); - } + play_element (notes_[i]); notes_.clear (); note_evs_.clear (); } @@ -87,8 +86,11 @@ Note_performer::try_music (Music *ev) return false; } +#include "translator.icc" + ADD_TRANSLATOR (Note_performer, "", "", - "note-event busy-playing-event", "", "", ""); + "note-event busy-playing-event", + "", ""); Note_performer::Note_performer () {