2 note-performer.cc -- implement Note_performer
4 source file of the GNU LilyPond music typesetter
6 (c) 1996, 1997 Jan Nieuwenhuizen <jan@digicash.com>
9 #include "note-performer.hh"
10 #include "musical-request.hh"
11 #include "audio-item.hh"
14 IMPLEMENT_IS_TYPE_B1(Note_performer,Performer);
15 ADD_THIS_TRANSLATOR(Note_performer);
17 Note_performer::Note_performer()
23 Note_performer::do_print() const
34 Note_performer::do_process_requests()
36 // this is _really_ braindead, but it generates some output
37 if (!note_req_l_ || !note_req_l_->melodic() || !note_req_l_->rhythmic ())
40 play (new Audio_note (note_req_l_));
45 Note_performer::do_try_request (Request* req_l)
50 if (!req_l->musical() || !req_l->musical ()->note ())
53 note_req_l_ = req_l->musical()->melodic ();