class Instrument_name_engraver : public Engraver
{
-
+ bool first_;
public:
TRANSLATOR_DECLARATIONS (Instrument_name_engraver);
virtual void acknowledge_grob (Grob_info);
virtual void stop_translation_timestep ();
virtual void process_music ();
+
};
Instrument_name_engraver::Instrument_name_engraver ()
{
text_ = 0;
+ first_ = true;
}
void
get_property ("instrumentSupport"));
text_ = 0;
}
+
+ first_ = false;
}
void
Also create text if barlines in other groups. This allows
a name to be attached to lyrics or chords.
*/
- if (scm_is_string (get_property ("whichBar")))
+ if (scm_is_string (get_property ("whichBar"))
+ || first_)
create_text ();
}