-ADD_TRANSLATOR (Instrument_name_engraver,
- /* descr */ " Prints the name of the instrument (specified by "
- " @code{Staff.instrument} and @code{Staff.instr}) "
- "at the left of the staff. ",
- /* creats*/ "InstrumentName",
- /* accepts */ "",
- /* acks */ "bar-line-interface axis-group-interface",
- /* reads */ "instrument instr",
- /* write */ "");
-
-/****************************************************************/
-
-class Vocal_name_engraver : public Instrument_name_engraver
-{
-public:
- TRANSLATOR_DECLARATIONS (Vocal_name_engraver);
- virtual void create_text ();
-};
+ && !info.grob ()->internal_has_interface (ly_symbol2scm ("dynamic-interface"))
+ && !info.grob ()->internal_has_interface (ly_symbol2scm ("piano-pedal-interface"))
+ && !info.grob ()->internal_has_interface (ly_symbol2scm ("volta-interface"))
+ && (!Align_interface::has_interface (info.grob ())))
+ {
+ if (Page_layout_problem::is_spaceable (info.grob ()))
+ axis_groups_.push_back (info.grob ());
+ else
+ // By default, don't include non-spaceable staves in the
+ // support of an instrument name. However, if the only staves
+ // are non-spaceable, we'll fall back to using them.
+ backup_axis_groups_.push_back (info.grob ());
+ }
+}