2 note-performer.cc -- implement Note_performer
4 source file of the GNU LilyPond music typesetter
6 (c) 1996, 1997--1998 Jan Nieuwenhuizen <janneke@gnu.org>
9 #include "note-performer.hh"
10 #include "musical-request.hh"
11 #include "audio-item.hh"
15 ADD_THIS_TRANSLATOR (Note_performer);
17 Note_performer::Note_performer ()
23 Note_performer::do_print () const
27 note_req_l_->print ();
32 Note_performer::do_process_requests ()
36 int transposing_i = 0;
38 Scalar prop = get_property ("transposing", 0);
39 if (!prop.empty_b () && prop.isnum_b ())
43 play (new Audio_note (note_req_l_, transposing_i));
50 Note_performer::do_try_music (Music* req_l)
55 if (Note_req *nr = dynamic_cast <Note_req *> (req_l))