lilypond-user
[Top][All Lists]
Advanced

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

calling a music variable using a Scheme function


From: Valentin Villenave
Subject: calling a music variable using a Scheme function
Date: Fri, 19 Dec 2008 14:12:53 +0100

Greetings Nicolas, hi everybody,

can someone tell me why the following snippet doesn't work?
(It's heavily based on Nicolas' functions -- and looked sooo promising...)

%%%%%%%%%%%
#(use-modules (ice-9 format))

toto = { c d c d }

includevar=
#(define-music-function (parser location name) (string?)
   (ly:parser-parse-string
     (ly:parser-clone parser)
     (format #f "\\~a"
             name))
   (make-music 'SequentialMusic 'void #t))

{ e1 \includevar #"toto" }

%%%%%%%%%%%%%

Cheers,
Valentin




reply via email to

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