Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(114)

Unified Diff: lily/note-performer.cc

Issue 294650043: Move translator initializations to X::boot () (Closed)
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lily/note-name-engraver.cc ('k') | lily/note-spacing-engraver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/note-performer.cc
diff --git a/lily/note-performer.cc b/lily/note-performer.cc
index aa46440006c21140b3f12828b3e97c5ef6ba2ae0..6e1295fd088a4482bb080f9bab42af72f7ed264f 100644
--- a/lily/note-performer.cc
+++ b/lily/note-performer.cc
@@ -126,14 +126,12 @@ Note_performer::stop_translation_timestep ()
note_evs_.clear ();
}
-IMPLEMENT_TRANSLATOR_LISTENER (Note_performer, note)
void
Note_performer::listen_note (Stream_event *ev)
{
note_evs_.push_back (ev);
}
-IMPLEMENT_TRANSLATOR_LISTENER (Note_performer, breathing)
void
Note_performer::listen_breathing (Stream_event *ev)
{
@@ -157,6 +155,13 @@ Note_performer::listen_breathing (Stream_event *ev)
}
}
+void
+Note_performer::boot ()
+{
+ ADD_LISTENER (Note_performer, note)
+ ADD_LISTENER (Note_performer, breathing)
+}
+
ADD_TRANSLATOR (Note_performer,
/* doc */
"",
« no previous file with comments | « lily/note-name-engraver.cc ('k') | lily/note-spacing-engraver.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b