|
From: | Simon Albrecht |
Subject: | Re: to make a function with argument list or vector |
Date: | Sun, 4 Sep 2016 21:55:42 +0200 |
On 04.09.2016 20:47, Thomas Morley wrote:
Urs suggestion would lead to the following, which I'd recommend as well: foo = #(define-music-function (parser location lst)(number-list?) #{ $@(map (lambda (i) #{ \repeat unfold $i { c2 } \bar "||" #}) lst) \bar "|." #}) \foo #'(5 7 10 8)
Nice!
2016-09-04 20:15 GMT+03:00, Simon Albrecht<address@hidden>:Hi Oxana, I_guess_ the reason it doesn’t work is because the parser doesn’t accept a Scheme expression instead of the number after \repeat unfold.Nope.
Oops… sorry! Best, Simon
[Prev in Thread] | Current Thread | [Next in Thread] |