lilypond-user
[Top][All Lists]
Advanced

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

calculation in scheme


From: Stefan Thomas
Subject: calculation in scheme
Date: Sat, 17 Sep 2011 15:23:29 +0200

Dear community,
I would like to define a variable with sheme and I want to substract the number one from this variable.
I tried it with:

% the following defines a Slur, lasting a certain number of eigth-notes
xaS = #(define-music-function (parser location x) (number?)
  #{ % in der folgenden Zeile Lilypondcode eingeben
    s1*0 (  \repeat unfold  #(- $x 1)  {s8 } s8)
#})

Unfortunately without succes!

reply via email to

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