lilypond-user
[Top][All Lists]
Advanced

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

Re: Re-sizing score on the fly


From: Alexander Kobel
Subject: Re: Re-sizing score on the fly
Date: Tue, 7 Aug 2018 14:18:14 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

On 08/07/2018 11:37 AM, Johan Vromans wrote:
On Tue, 7 Aug 2018 18:25:53 +1000, Don Gingrich <address@hidden>
wrote:

Then the multiplier would reside in the included files, the
variable would be in the score file, and by including
the correct file I could have either type of score.

Why not set the staff size in the included file, just like the paper
settings?

I assume that some scores are meant to have a smaller staff size than others, hence the need for a separate multiplier. Say score A has "design size" ("natural size"? whatever) of 16 and should be scaled up to 1.25*16 = 20, while score B with a smaller piece has "design size" of 20 and should be scaled up by the same factor to 1.25*20 = 24.

Anyway, regardless of the use case, the following piece of code should do it:

#(define design-staff-size 16)
#(define staff-size-multiplier 1.25)
#(set-global-staff-size (* design-staff-size staff-size-multiplier))

The "(* variable multiplier)" part is Scheme syntax for "apply the multiplication function to design-staff-size and staff-size-multiplier". The definitions of the two variables can be anywhere before the call to set-global-staff-size, including includes. IIUC, this is what you want to achieve?


HTH,
Alex

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

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