]> git.donarmstrong.com Git - lilypond.git/blob - lily/silent-performer.cc
patch::: 0.0.75.jcn6: pats
[lilypond.git] / lily / silent-performer.cc
1 /*
2   silent-performer.cc -- implement Silent_performer
3
4   (c) 1996, 1997 Jan Nieuwenhuizen <jan@digicash.com>
5  */
6
7 #include "silent-performer.hh"
8 #include "translator.hh"
9 #include "input-translator.hh"
10 #include "command-request.hh"
11 #include "musical-request.hh"
12 #include "debug.hh"
13
14 IMPLEMENT_IS_TYPE_B1(Silent_performer,Performer);
15 IMPLEMENT_STATIC_NAME(Silent_performer);
16 ADD_THIS_PERFORMER(Silent_performer);
17
18 Silent_performer::Silent_performer()
19 {
20 }
21
22 Silent_performer::~Silent_performer()
23 {
24 }
25
26 bool 
27 Silent_performer::try_request( Request* req_l )
28 {
29     return true;
30 #if 0
31     Command_req* com_l = req_l->command();
32     Musical_req* mus_l = req_l->musical();
33
34     if ( com_l ) {
35         if ( com_l->bar() )
36             return true;
37
38         if ( com_l->barcheck() )
39             return true;
40     }
41
42     if ( mus_l ) {
43         if ( mus_l->beam() )
44             return true;
45         
46         if( mus_l->rest() )
47             return true;
48
49         if( mus_l->slur() )
50             return true;
51
52         if ( mus_l->stem() )
53             return true;
54
55         if ( mus_l->tie() )
56             return true;
57     }
58
59     return false;
60 #endif
61 }
62