lilypond-user
[Top][All Lists]
Advanced

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

nested variables in scheme


From: rob
Subject: nested variables in scheme
Date: Thu, 16 Dec 2010 14:10:21 +0100 (CET)
User-agent: SquirrelMail/1.4.15

sorry about previous untitled mail - knocked the send button by accident :/

hi!

i have a definition that takes a list as an argument

\include "bezier.ly"
beza = {
  \bezier #'( 0.1  1.0 0.15  1.0 0.5 )
}

i would like to be able to assign one of the elements of the list with a
variable like this

beza #0.4

feeding into something like this: (which doesn't work)

beza =  #(define-music-function (parser location thickness) (number?)
   #{
\bezier #'( 0.1  1.0 0.15  1.0 $number )
 #})


so i would like to send a variable into a list which itself as another
variable for another function

not sure how to do this and cant find anything in the docs about it
any clues?

thanks

rob




> hi!
>
> i have a definition that takes a list as an argument
>
> \include "bezier.ly"
> beza = {
>   \bezier #'( 0.1  1.0 0.15  1.0 0.5 )
> }
>
> i would like to be able to assign one of the elements of the list with a
> variable like this
>
> beza #0.4
>
> feeding into something like this
>
> beza =  #(define-music-function (parser location thickness) (number?)
>    #{
> \bezier #'( 0.1  1.0 0.15  1.0 $number )
> }
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>
>





reply via email to

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