lilypond-user
[Top][All Lists]
Advanced

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

Re: How to make a tweak a variable?


From: David Kastrup
Subject: Re: How to make a tweak a variable?
Date: Thu, 22 Sep 2011 00:05:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Thomas Morley <address@hidden> writes:

> I tried your suggestion (without any changes), but it didn't compile.
>
> \version "2.14.2"
>
> notToBarline = #(define-music-function
>  (parser location grb)
>  (ly:music?)
> #{
>  -\tweak #'to-barline ##f-$grb
> #})
>
> {
> c1-\notToBarline \< |
> d4\!  % etc.
> }
>
> The log states:
>
> <string>:2:1: Fehler: syntax error, unexpected '-'
>  
>  -\tweak #(quote to-barline) ##f-\lilyvartmpbg
> <string>:2:32: Fehler: syntax error, unexpected '-'
>  -\tweak #(quote to-barline) ##f
>                                 -\lilyvartmpbg
>
> Am I doing something wrong? Or should I use a higher version?

The latter.  This functionality of #{ ... #} has been implemented about
a month ago in 2.15 and will see the light of a stable version first in
2.16.

-- 
David Kastrup




reply via email to

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