X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fdrum-note-performer.cc;h=ee445f5ad89aac3d14db3c510a1e47e2e8adc206;hb=9a2ec61184ccd4598312ce81cf9638ac1784d1f5;hp=a4e0ff2f7f526841fa04b1e212153e33b68c590e;hpb=abbdb46061be5c0a0682059d1f86bf3e44ca5cf3;p=lilypond.git diff --git a/lily/drum-note-performer.cc b/lily/drum-note-performer.cc index a4e0ff2f7f..ee445f5ad8 100644 --- a/lily/drum-note-performer.cc +++ b/lily/drum-note-performer.cc @@ -3,14 +3,13 @@ source file of the GNU LilyPond music typesetter - (c) 1996--2006 Jan Nieuwenhuizen + (c) 1996--2009 Jan Nieuwenhuizen */ #include "performer.hh" #include "audio-item.hh" #include "audio-column.hh" #include "global-context.hh" -#include "pitch.hh" #include "stream-event.hh" #include "translator.icc" #include "warn.hh" @@ -65,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); @@ -91,5 +92,15 @@ Drum_note_performer::listen_note (Stream_event *ev) } ADD_TRANSLATOR (Drum_note_performer, - "Play drum notes.", "", - "note-event", "", ""); + /* doc */ + "Play drum notes.", + + /* create */ + "", + + /* read */ + "", + + /* write */ + "" + );