lilypond-user
[Top][All Lists]
Advanced

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

Re: Difference between # and $


From: David Kastrup
Subject: Re: Difference between # and $
Date: Mon, 31 Mar 2014 15:44:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

"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.

-- 
David Kastrup



reply via email to

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