]> git.donarmstrong.com Git - lilypond.git/blob - lily/swallow-perf.cc
Update source file headers. Fixes using standard GNU package conventions.
[lilypond.git] / lily / swallow-perf.cc
1 /*
2   This file is part of LilyPond, the GNU music typesetter.
3
4   Copyright (C) 1997--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
5
6   LilyPond is free software: you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation, either version 3 of the License, or
9   (at your option) any later version.
10
11   LilyPond is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   GNU General Public License for more details.
15
16   You should have received a copy of the GNU General Public License
17   along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #include "performer.hh"
21 #include "music.hh"
22
23 class Swallow_performer : public Performer
24 {
25 public:
26   TRANSLATOR_DECLARATIONS (Swallow_performer);
27 protected:
28   virtual bool try_music (Music *);
29 };
30
31 bool
32 Swallow_performer::try_music (Music *m)
33 {
34   if (m->is_mus_type ("melisma-playing-event"))
35     return false;
36   else
37     return true;
38 }
39
40 Swallow_performer::Swallow_performer ()
41 {}
42
43 #include "translator.icc"
44
45 ADD_TRANSLATOR (Swallow_performer,
46                 /* doc */
47                 "",
48
49                 /* create */
50                 "",
51
52                 /* read */
53                 "",
54
55                 /* write */
56                 ""
57                 );