]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/span-dynamic-performer.cc
2003 -> 2004
[lilypond.git] / lily / span-dynamic-performer.cc
index db2523d289fea07b0c3316b86a0b2b7cd169d6d6..f5d24e01be44399791e30d5279bd478276cb49c8 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  2000 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c) 2000--2004 Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
 #include "performer.hh"
@@ -30,7 +30,6 @@ protected:
   virtual void acknowledge_audio_element (Audio_element_info);
   virtual void process_music ();
   virtual void stop_translation_timestep ();
-  virtual void start_translation_timestep ();
 
 private:
   Audio_dynamic* audio_;
@@ -161,19 +160,17 @@ Span_dynamic_performer::stop_translation_timestep ()
       play_element (audio_);
       audio_ = 0;
     }
-}
 
-void
-Span_dynamic_performer::start_translation_timestep ()
-{
   span_req_l_drul_[STOP] = 0;
   span_req_l_drul_[START] = 0;
+
 }
 
 bool
 Span_dynamic_performer::try_music (Music* r)
 {
-  if (r->is_mus_type ("dynamic-event"))        // fixme.
+  if (r->is_mus_type ("crescendo-event")
+      || r->is_mus_type ("decrescendo-event"))
     {
       Direction d = to_dir (r->get_mus_property ("span-direction"));
       span_req_l_drul_[d] = r;
@@ -183,5 +180,5 @@ Span_dynamic_performer::try_music (Music* r)
 }
 ENTER_DESCRIPTION (Span_dynamic_performer,
                   "", "",
-                  "dynamic-event", 
+                  "crescendo-event decrescendo-event", 
                   "", "", "");