]> git.donarmstrong.com Git - lilypond.git/commitdiff
fix midi lengths for drum notes too.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 11 Jan 2007 14:48:34 +0000 (15:48 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 11 Jan 2007 14:48:34 +0000 (15:48 +0100)
Conflicts:

lily/drum-note-performer.cc

lily/drum-note-performer.cc

index 19ba7bbf90d2ca01548443a7af8649ce53480a1b..c851fd0cb0affc011553853d14e946eee71f964e 100644 (file)
@@ -65,7 +65,15 @@ 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);
+         if (now_mom().grace_part_)
+           {
+             len.grace_part_ = len.main_part_;
+             len.main_part_ = Rational (0);
+           }
+             
+
+         Audio_note *p = new Audio_note (*pit, len,
                                           tie_event, 0);
          Audio_element_info info (p, n);
          announce_element (info);