]> git.donarmstrong.com Git - lilypond.git/blob - lily/thread-devnull-engraver.cc
4487d746cedcc49b08fbac9e4a9b07b09ee53e9d
[lilypond.git] / lily / thread-devnull-engraver.cc
1 /*
2   thread-devnull-engraver.cc -- implement Thread_devnull_engraver
3
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 2000 Jan Nieuwenhuizen <janneke@gnu.org>
7 */
8
9 #include "engraver.hh"
10 #include "item.hh"
11 #include "musical-request.hh"
12 #include "translator-group.hh"
13
14 class Thread_devnull_engraver : public Engraver
15 {
16 public:
17   VIRTUAL_COPY_CONS (Translator);
18   
19 protected:
20   virtual void acknowledge_grob (Grob_info);
21 };
22
23 ADD_THIS_TRANSLATOR (Thread_devnull_engraver);
24
25 void
26 Thread_devnull_engraver::acknowledge_grob (Grob_info i)
27 {
28   if (daddy_trans_l_->id_str_.left_str (3) == "two"
29       && (to_boolean (get_property ("unison"))
30           || to_boolean (get_property ("unisilence")))
31       && to_boolean (get_property ("soloADue")))
32     i.elem_l_->suicide ();
33 }