lilypond-user
[Top][All Lists]
Advanced

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

Re: can we pass in header variables as CLI parameters?


From: Ian Ring
Subject: Re: can we pass in header variables as CLI parameters?
Date: Sun, 19 Mar 2017 13:57:40 +0000

Huge thanks to Timothy Lanfear! That solution works perfectly.

I can pass multiple parameters in like this:

        lilypond -e '(define-public title "my song")(define-public copyrightyear "2017")(define-public ismn "12345-678-90-5")' tmp.ly


and then my header looks like:

        \header {
         copyrightyear = \copyrightyear
         title = \title
         ismn = \ismn
        }

It only works if the Guile module is added...

        #(use-modules (guile-user))

Cheers!
Ian



reply via email to

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