2 tab-staff-symbol-engraver.cc -- implement Tab_staff_symbol_engraver
4 source file of the GNU LilyPond music typesetter
6 (c) 2005--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
12 class Tab_staff_symbol_engraver : public Engraver
15 TRANSLATOR_DECLARATIONS (Tab_staff_symbol_engraver);
17 DECLARE_ACKNOWLEDGER (staff_symbol);
21 Tab_staff_symbol_engraver::acknowledge_staff_symbol (Grob_info gi)
23 int k = scm_ilength (get_property ("stringTunings"));
25 gi.grob ()->set_property ("line-count", scm_from_int (k));
28 Tab_staff_symbol_engraver::Tab_staff_symbol_engraver ()
32 #include "translator.icc"
34 ADD_ACKNOWLEDGER (Tab_staff_symbol_engraver, staff_symbol);
35 ADD_TRANSLATOR (Tab_staff_symbol_engraver,
37 "Create a tablature staff symbol, but look at"
38 " @code{stringTunings} for the number of lines.",