|
From: | -Eluze |
Subject: | Re: problems with user-defined command line options |
Date: | Fri, 23 Dec 2011 15:41:12 -0800 (PST) |
i am certainly not a scheme expert but from the Application Usage i can see the option -d expects a variable name and a value:
-dvar=val
if you invoke lilypond with -dvar=#t yourFile.ly you can take over this value e.g. as
slurSwitch = #(define-music-function (parser location) () (if (eqv? #t (ly:get-option 'var)) #{ \override Slur #'transparent = ##t #} #{ #}) ) test = { \slurSwitch c2 ( d ) } \score { \test }i'd appreciate scheme experts to confirm this is how to use this option or to provide better examples!
thanks!
Eluze
[Prev in Thread] | Current Thread | [Next in Thread] |