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


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to