lilypond-user
[Top][All Lists]
Advanced

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

Re: Problem creating Macro on \repeat


From: Mats Bengtsson
Subject: Re: Problem creating Macro on \repeat
Date: Fri, 11 Aug 2006 09:48:05 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417

I'm afraid you have hit a limitation in the use of #{...#}. My recommendation is to change to plan B, which is described in the section on "Building complicated
functions" in the manual for version 2.9.x.

  /Mats

Pietro Casella wrote:

Hi all,

I'm trying to create something like this:

blankbar = #(define-music-function (parser location x) (number?)
#{
    \repeat unfold $x {s1}
#})

\blankbar #56

but I get the error message:

<string>:2:23: error: syntax error, unexpected NUMBER_IDENTIFIER, expecting DIGIT > or UNSIGNED
        \repeat unfold
                       \lilyvartmpa {s1}
error: errors found, ignoring music expression


if I replace $x with a number I get no error. Any ideas on how to fix
this? I already tried some other types for the x parameter but none of
them seemed right...

Thanx much

Pietro


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


--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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