]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/span-dynamic-performer.cc
* lily/translator-scheme.cc (LY_DEFINE): add !
[lilypond.git] / lily / span-dynamic-performer.cc
index e568cae2e47a3b6802c4bb982b354535bbe3457e..740eb1a648980c7fce6872cba397e5e4953e084d 100644 (file)
@@ -3,12 +3,12 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  2000 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c)  2000--2003 Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
 #include "performer.hh"
 
-#include "request.hh"
+#include "event.hh"
 #include "audio-item.hh"
 
 struct Audio_dynamic_tuple
@@ -173,7 +173,8 @@ Span_dynamic_performer::start_translation_timestep ()
 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 +184,5 @@ Span_dynamic_performer::try_music (Music* r)
 }
 ENTER_DESCRIPTION (Span_dynamic_performer,
                   "", "",
-                  "dynamic-event", 
+                  "crescendo-event decrescendo-event", 
                   "", "", "");