]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/performer.cc
release: 0.1.13
[lilypond.git] / lily / performer.cc
index ed72f2a2cee5f948f4f8dc00bb328189ad6d08d5..5775f157eb4133230dbe0a73a96cb34e97ccaf48 100644 (file)
 #include "debug.hh"
 
 
-IMPLEMENT_IS_TYPE_B(Performer);
+IMPLEMENT_IS_TYPE_B1(Performer, Translator);
 
 Performer::Performer()
-{
-  daddy_perf_l_ = 0;
-  init_b_ =false;
-}
-
-Performer::~Performer()
-{
-}
-
-void
-Performer::do_print() const
 {
 }
 
 void 
 Performer::play (Audio_element* p) 
 { 
-  daddy_perf_l_->play (p); 
+  daddy_perf_l ()->play (p); 
 }
 
 int
 Performer::get_tempo_i() const
 {
-  return daddy_perf_l_->get_tempo_i();
-}
-
-void
-Performer::print() const
-{
-#ifndef NPRINT
-  DOUT << "\n" << name() << " {";
-  do_print();
-  DOUT << "}";
-#endif
-}
-
-void
-Performer::process_requests()
-{
-}
-
-bool 
-Performer::do_try_request (Request* req_l)
-{
-  return false;
-}
-
-bool
-Performer::try_request (Request*r)
-{
-  if (!init_b_) 
-    {
-       creation_processing();
-    }
-  return do_try_request (r);
-}
-
-void
-Performer::creation_processing()
-{
-  if (!init_b_) 
-    {
-       do_creation_processing();
-       init_b_ = true;
-    }
-}
-
-void
-Performer::do_creation_processing()
-{
+  return daddy_perf_l ()->get_tempo_i();
 }
 
-void
-Performer::do_removal_processing()
+Performer_group_performer*
+Performer::daddy_perf_l () const
 {
+  return (daddy_trans_l_) 
+    ?(Performer_group_performer*) daddy_trans_l_->performer_l ()
+    : 0;
 }