lilypond-user
[Top][All Lists]
Advanced

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

Re: is shapeSlur broken?


From: Jan-Peter Voigt
Subject: Re: is shapeSlur broken?
Date: Fri, 27 Apr 2012 10:28:33 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120420 Thunderbird/12.0

Hello Urs,

yes there was a syntax change:
you might try

shapeSlur = #(define-music-function (parser location offsets)(list?)
  #{
    \once \override Slur #'control-points = $(shape-slur offsets)
  #})

Variables in musicfunctions now are available by there name without the preceding $. The $-sign now introduces a scheme-expression and returns the result directly ... now here should be more explanation, that I am not able to put in words right now ;-)

HTH
Cheers, Jan-Peter

On 27.04.2012 10:11, Urs Liska wrote:
Hi list,

the shapeSlur function from the LSR (http://lsr.dsi.unimi.it/LSR/Snippet?id=777) doesn't seem to work anymore (at least for me).

That's the 'entrance' function:

shapeSlur =
#(define-music-function (parser location offsets)
                        (list?)
  #{
    \once \override Slur #'control-points = #(shape-slur $offsets)
  #})


When calling this function I get the error:

Fehler: GUILE signalisierte einen Fehler für den hier beginnenden Ausdruck
    \once \override Slur #'control-points = #
                                             (shape-slur $offsets)

then

Warnung: Typprüfung für »control-points« gescheitert; Wert »#<unspecified>« muss vom Typ »list« sein

and finally

Unbound variable: $offsets

From what I see I assume that this is due to some change in syntax at some point (the last time I recall using this function was with 2.14.0). But as you know I'm still quite lost with Scheme, so I can't neither verify nor fix this, and so I'd be gracious for any advice. Of course I can't be sure that this type check at the calling of the 'main' function is all there is to it, but lilyPond doesn't even get to call shape-slur ...

Best
Urs


_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user






reply via email to

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