- text_p_arr_.push (item_p);
- announce_element (Score_element_info (item_p, 0));
+ chord_name_ = make_item ("ChordName");
+ chord_name_->set_grob_property("text", markup);
+ announce_grob(chord_name_, notes_[0]->self_scm ());
+ SCM s = get_property ("chordChanges");
+ if (to_boolean (s) && gh_pair_p (last_chord_)
+ && gh_equal_p (chord_as_scm, last_chord_))
+ chord_name_->set_grob_property ("begin-of-line-visible", SCM_BOOL_T);
+
+ last_chord_ = chord_as_scm;
+}
+
+bool
+Chord_name_engraver::try_music (Music* m)
+{
+ /*
+ hmm. Should check?
+ */
+ if (m->is_mus_type ("note-event"))
+ {
+ add_note (m);
+ return true;
+ }
+ return false;