lilypond-devel
[Top][All Lists]
Advanced

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

Re: lily in scm, using music variables


From: Nicolas Sceaux
Subject: Re: lily in scm, using music variables
Date: Tue, 04 May 2004 23:27:05 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Tue, 4 May 2004 20:13:41 +0200, Han-Wen a dit : 

 > address@hidden writes:
 >> A function was introduced, that can be useful for debugging or
 >> simply finding out how a music expression can be built

 > is it necessary to do in such a complex way? I would rather rewrite
 > the parser entry points so that

 >   #{ c4 $myMusic #}

 > becomes

 >      (let*
 >        ((parser (ly:clone-current-parser)))
 >        (ly:parser-define parser 'myMusic myMusic)
 >        (ly:parse-string parser "c4 \myMusic "))

 > Then it also works for non-Music objects and requires much less code.
 > That should be feasible, AFAICT. What do you think?

That would be cleaner and more robust indeed! (my suggestion was
stupid, dohh). I'll try something with that.

nicolas





reply via email to

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