]> git.donarmstrong.com Git - lilypond.git/blob - lily/performer.cc
* lily/include/grob-info.hh: origin_contexts() now does not
[lilypond.git] / lily / performer.cc
1 /*
2   performer.cc -- implement Performer
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1996--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7                Jan Nieuwenhuizen <janneke@gnu.org>
8  */
9
10 #include "context.hh"
11 #include "performer-group-performer.hh"
12 #include "warn.hh"
13
14 void
15 Performer::do_announces ()
16 {
17 }
18
19 void 
20 Performer::play_element (Audio_element* p) 
21
22   get_daddy_performer ()->play_element (p); 
23 }
24
25 int
26 Performer::get_tempo () const
27 {
28   return get_daddy_performer ()->get_tempo ();
29 }
30
31 Performer_group_performer*
32 Performer::get_daddy_performer () const
33 {
34   return
35     dynamic_cast<Performer_group_performer *> (get_daddy_translator ());
36 }
37
38 void
39 Performer::acknowledge_audio_element (Audio_element_info)
40 {
41 }
42
43 void
44 Performer::create_audio_elements ()
45 {
46 }
47
48
49 void
50 Performer::announce_element (Audio_element_info i)
51 {
52   if (!i.origin_trans_)
53     i.origin_trans_= this;
54   get_daddy_performer ()->announce_element (i);
55 }
56
57 void
58 Performer::process_music ()
59 {
60   
61 }