Am 31.03.2014 15:44, schrieb David Kastrup:
"Phil Holmes" <[email protected]> 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
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user