-/*
- ;; text: list of word
- ;; word: string + optional list of property
- ;; property: align, kern, font (?), size
- */
-Molecule
-Chord_name::ly_text2molecule (SCM text) const
-{
- Molecule mol;
- if (gh_list_p (text))
- {
- while (gh_cdr (text) != SCM_EOL)
- {
- Molecule m = ly_word2molecule (gh_car (text));
- if (!m.empty_b ())
- mol.add_at_edge (X_AXIS, RIGHT, m, 0);
- text = gh_cdr (text);
- }
- text = gh_car (text);
- }
- Molecule m = ly_word2molecule (text);
- if (!m.empty_b ())
- mol.add_at_edge (X_AXIS, RIGHT, m, 0);
- return mol;
-}
-
-MAKE_SCHEME_SCORE_ELEMENT_CALLBACKS(Chord_name);
-
-Molecule
-Chord_name::do_brew_molecule () const
-{
- SCM style = get_elt_property ("style");
- if (style == SCM_UNDEFINED)
- style = ly_str02scm ("banter");
-
- SCM inversion = get_elt_property ("inversion");
- if (inversion == SCM_UNDEFINED)
- inversion = SCM_BOOL_F;
+ADD_INTERFACE (Chord_name,
+ "A chord label (name or fretboard).",