X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fchord-name.cc;h=80955b20d7404b1063057bbb156dae20f685fd0d;hb=f988425624a6f6d1a48aea0ac0c1c84ff0857e56;hp=c8e8e785ac8e55a7c419476a2c0f4a74c7fe1b8c;hpb=4f6b4a6446a913f89760e63b7f65c8bdb223a3a5;p=lilypond.git diff --git a/lily/chord-name.cc b/lily/chord-name.cc index c8e8e785ac..80955b20d7 100644 --- a/lily/chord-name.cc +++ b/lily/chord-name.cc @@ -152,26 +152,23 @@ MAKE_SCHEME_CALLBACK (Chord_name, brew_molecule); SCM Chord_name::brew_molecule (SCM smob) { - Score_element *sc = unsmob_element (smob); - SCM style = sc->get_elt_property ("style"); + Score_element *me = unsmob_element (smob); + SCM style = me->get_elt_property ("style"); if (!gh_string_p (style)) style = ly_str02scm ("banter"); - SCM inversion = sc-> get_elt_property ("inversion"); + SCM inversion = me-> get_elt_property ("inversion"); if (inversion == SCM_EOL) inversion = SCM_BOOL_F; - SCM bass = sc->get_elt_property ("bass"); + SCM bass = me->get_elt_property ("bass"); if (bass == SCM_EOL) bass = SCM_BOOL_F; - SCM pitches = sc->get_elt_property ("pitches"); - SCM text = scm_eval (gh_list (ly_symbol2scm ("chord::user-name"), - style, - ly_quote_scm (pitches), - ly_quote_scm (gh_cons (inversion, bass)), - SCM_UNDEFINED)); + SCM pitches = me->get_elt_property ("pitches"); + SCM func = me->get_elt_property (ly_symbol2scm ("chord-name-function")); + SCM text = gh_call3 (func, style, ly_quote_scm (pitches), ly_quote_scm (gh_cons (inversion, bass))); - return ly_text2molecule (sc, text).create_scheme (); + return ly_text2molecule (me, text).create_scheme (); }