lilypond-user
[Top][All Lists]
Advanced

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

Re: function argument computation


From: Michael Ellis
Subject: Re: function argument computation
Date: Fri, 25 Feb 2011 10:14:13 -0500



On Fri, Feb 25, 2011 at 9:20 AM, Peter Buhr <address@hidden> wrote:
specialB = #(define-music-function (parser location suffix) (string?)
#{
       \base (concat "XXX" $suffix) #$suffix   % DOES NOT WORK
#})

Hi Peter,
I think the following does what you're looking for.  

specialB =
 #(define-music-function (parser location suffix) (string?)
    (define combined (string-append "XXX" suffix))
   #{
       \base $combined $suffix   
   #})

Cheers,
Mike

reply via email to

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