lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implement framework for post-fix text (de)cresc spanners


From: Neil Puttock
Subject: Re: Implement framework for post-fix text (de)cresc spanners
Date: Sun, 12 Apr 2009 00:57:02 +0100

2009/4/12 Patrick McCarty <address@hidden>:
> On Sun, Apr 12, 2009 at 12:28:06AM +0200, Reinhold Kainhofer wrote:
>>
>> On Samstag, 11. April 2009 20:33:47 address@hidden 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]