]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/note-performer.cc
* GNUmakefile.in (short-examples):
[lilypond.git] / lily / note-performer.cc
index 75b56be3daf35c9556627ff4bb90f5f270702f2e..3b39293e27da50f968738e430ae033c35fc468cd 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1996--2000 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c) 1996--2002 Jan Nieuwenhuizen <janneke@gnu.org>
  */
 
 #include "performer.hh"
@@ -18,7 +18,7 @@ Convert reqs to audio notes.
 */
 class Note_performer : public Performer {
 public:
-  VIRTUAL_COPY_CONS(Translator);
+  TRANSLATOR_DECLARATIONS(Note_performer);
   
 protected:
   virtual bool try_music (Music *req_l) ;
@@ -33,8 +33,6 @@ private:
   Array<Audio_note*> delayed_p_arr_;
 };
 
-ADD_THIS_TRANSLATOR (Note_performer);
-
 void 
 Note_performer::create_audio_elements ()
 {
@@ -43,7 +41,7 @@ Note_performer::create_audio_elements ()
       int transposing_i = 0;
       //urg
       SCM prop = get_property ("transposing");
-      if (gh_number_p(prop)) 
+      if (gh_number_p (prop)) 
        transposing_i = gh_scm2int (prop);
 
       while (note_req_l_arr_.size ())
@@ -85,7 +83,8 @@ Note_performer::stop_translation_timestep ()
   for (int i=0; i < note_p_arr_.size (); i++)
     {
       Audio_note* n = note_p_arr_[i];
-      if (Moment m= n->delayed_until_mom_)
+      Moment m= n->delayed_until_mom_;
+      if (m.to_bool ())
        {
          global_l->add_moment_to_process (m);
          delayed_p_arr_.push (n);
@@ -125,3 +124,9 @@ Note_performer::try_music (Music* req_l)
     }
   return false;
 }
+
+ENTER_DESCRIPTION(Note_performer,"","","","","");
+
+Note_performer::Note_performer()
+{
+}