On 08/07/2018 11:37 AM, Johan Vromans wrote:
On Tue, 7 Aug 2018 18:25:53 +1000, Don Gingrich <gingr...@internode.on.net>
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

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

Reply via email to