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<[email protected]>:
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

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to