]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/drum-note-performer.cc
Run `make grand-replace'.
[lilypond.git] / lily / drum-note-performer.cc
index 49a8d270018a4b08cc5c80916b7a05769b0a3395..959d39eb9d01bca5877aecc2cb1afce034c12358 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1996--2006 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c) 1996--2008 Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
 #include "performer.hh"
@@ -64,7 +64,9 @@ Drum_note_performer::process_music ()
                 tie_event = ev;
             }
 
-         Audio_note *p = new Audio_note (*pit, get_event_length (n), 
+         Moment len = get_event_length (n, now_mom ());
+
+         Audio_note *p = new Audio_note (*pit, len,
                                           tie_event, Pitch (0, 0, 0));
          Audio_element_info info (p, n);
          announce_element (info);
@@ -90,4 +92,15 @@ Drum_note_performer::listen_note (Stream_event *ev)
 }
 
 ADD_TRANSLATOR (Drum_note_performer,
-               "Play drum notes.", "", "", "");
+               /* doc */
+               "Play drum notes.",
+
+               /* create */
+               "",
+
+               /* read */
+               "",
+
+               /* write */
+               ""
+               );