2 voice-devnull-engraver.cc -- implement Voice_devnull_engraver
4 source file of the GNU LilyPond music typesetter
6 (c) 2000 Jan Nieuwenhuizen <janneke@gnu.org>
11 #include "musical-request.hh"
12 #include "translator-group.hh"
14 class Voice_devnull_engraver : public Engraver
17 VIRTUAL_COPY_CONS (Translator);
20 virtual void acknowledge_element (Score_element_info);
23 ADD_THIS_TRANSLATOR (Voice_devnull_engraver);
26 Voice_devnull_engraver::acknowledge_element (Score_element_info i)
28 if (daddy_trans_l_->id_str_ == "two"
29 && (to_boolean (get_property ("unison"))
30 || to_boolean (get_property ("unisilence"))))
32 static char const *junk[] = {
36 "text-item-interface",
37 "text-script-interface",
39 "crescendo-interface",
42 for (char const **p = junk; *p; *p++)
44 if (i.elem_l_->has_interface (ly_symbol2scm (*p)))
46 i.elem_l_->suicide ();