lilypond-user
[Top][All Lists]
Advanced

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

Re: Scripting the \paper blocks output


From: Andrew Bernard
Subject: Re: Scripting the \paper blocks output
Date: Mon, 15 Feb 2016 17:35:52 +1100
User-agent: Microsoft-MacOutlook/0.0.0.160109

Hi Andrew,

If I follow you correctly, then this would work:

Put these vars in directly in your lilypond file:

composer = "Bob Smith"
catalog-number = “001”

In default.ily, create this function:

#(define-markup-command (substitute layout props) ()
   (interpret-markup layout props
     (markup (string-append composer "." catalog-number))
     ))


Then use it in default.ily as follows:

 \on-the-fly #not-part-first-page \line { Klang Büro \substitute }

I am sure you can think of a better function name than I can.

Obviously you can format the substitute string as per your desire.

Andrew






reply via email to

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