lilypond-user
[Top][All Lists]
Advanced

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

to make a function with argument list or vector


From: Оксана Крымина
Subject: to make a function with argument list or vector
Date: Sun, 4 Sep 2016 19:52:07 +0300

hello all!

please, help me to write a function to convert several numbers like (5
7 10 8) to musical string like
 \repeat unfold 5 {c2} \bar ""
 \repeat unfold 7 {c2} \bar ""
 \repeat unfold 10 {c2} \bar ""
 \repeat unfold 8 {c2} \bar ""

my code produces errors only:
\version "2.18.2"
musSpisok = #(define-scheme-function (parser location llen)(list?)
            (if (not (null? llen))
#{
                      \repeat unfold $(car llen) {c2} \bar ""  (
\musSpisok #'(cdr llen))  )
                    #})

thanx,
Oxana



reply via email to

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