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
lilypond-user@gnu.org
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: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user