|
From: | Urs Liska |
Subject: | Re: Difference between # and $ |
Date: | Mon, 31 Mar 2014 15:47:39 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
Am 31.03.2014 15:44, schrieb David Kastrup:
"Phil Holmes" <address@hidden> writes:I've read http://lilypond.org/doc/v2.19/Documentation/extending/lilypond-scheme-syntax (as no doubt, Urs has) and tried to use $ in place of #. Can't get it to compile. So, taking the following note doubler, how would $ be used instead of #? dubble = #(define-music-function( parser location arg ) (ly:music?) #{ $arg $arg #} ) { c'' \dubble c' }Huh? Which # would you even want to replace here? #{ ... #} is inside of Scheme. $arg already uses a $. This code works fine as written.
For some reason the use of $arg doesn't compile for Phil. So he already _has_ replaced #arg with $arg.
But I have to admit that the given example compiles fine on my side. Did you compile with an older version, Phil?And I _will_ re-read the chapter(s) and figure out where exactly I lose track.
Urs
[Prev in Thread] | Current Thread | [Next in Thread] |