2009/4/12 Patrick McCarty <pnor...@gmail.com>: > On Sun, Apr 12, 2009 at 12:28:06AM +0200, Reinhold Kainhofer wrote: >> >> On Samstag, 11. April 2009 20:33:47 n.putt...@gmail.com wrote: >> >> > You'd >> > need a method which does the reverse of camel_case_to_lisp_identifier () >> > so that the events would be converted from e.g. crescendo-spanner -> >> > crescendoSpanner. >> >> Huh? Sorry, but I don't understand what you want to say here. Can >> you please elaborate? > > The "music properties" generally follow a specific naming convention: > all lowercase, except the multiple-word properties, which contain > hyphens between words. > > I think this is what Neil is referring to.
That's exactly what I meant, though reading back what I posted to Rietveld, I don't blame you for becoming confused. :) Of course, what I should have said was you need to use camel_case_to_lisp_identifier () to convert e.g. crescendoSpanner -> crescendo-spanner. #include "misc.hh" ... SCM spanner_type = evt->get_property ((camel_case_to_lisp_identifier (name)).c_str ()); Regards, Neil _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel