]> git.donarmstrong.com Git - lilypond.git/blob - lily/swallow-perf.cc
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / swallow-perf.cc
1 /*
2   swallow-performer.cc -- implement Swallow_performer
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #include "performer.hh"
10 #include "music.hh"
11
12 class Swallow_performer : public Performer
13 {
14 public:
15   TRANSLATOR_DECLARATIONS (Swallow_performer);
16 protected:
17   virtual bool try_music (Music *);
18 };
19
20 bool
21 Swallow_performer::try_music (Music *m)
22 {
23   if (m->is_mus_type ("busy-playing-event")
24       || m->is_mus_type ("melisma-playing-event"))
25     return false;
26   else
27     return true;
28 }
29
30 Swallow_performer::Swallow_performer ()
31 {}
32
33 #include "translator.icc"
34
35 ADD_TRANSLATOR (Swallow_performer,
36                 /* doc */ "",
37                 /* create */ "",
38                 /* accept */ "general-music",
39                 /* read */ "",
40                 /* write */ "");