]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/drum-note-performer.cc
Minor fixes.
[lilypond.git] / lily / drum-note-performer.cc
index 7aa463b5767f6af2aad4193fccc26a356dcef13c..bb55ac2ef6a417c2eae20c369aa19b965ae0409c 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1996--2006 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c) 1996--2007 Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
 #include "performer.hh"
@@ -64,8 +64,10 @@ Drum_note_performer::process_music ()
                 tie_event = ev;
             }
 
-         Audio_note *p = new Audio_note (*pit, get_event_length (n), 
-                                          tie_event, 0);
+         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);
          notes_.push_back (p);