bug-lilypond
[Top][All Lists]
Advanced

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

Re: Set global staff size as command line option


From: Francisco Vila
Subject: Re: Set global staff size as command line option
Date: Wed, 7 Dec 2011 18:16:26 +0100

2011/12/7 Xavier Scheuer <address@hidden>:
> Hi,
>
> Is it possible to set global staff size as command line option?
> Like it is possible to specify paper size with
>
>  lilypond -dpaper-size=\"letter\"  myfile.ly
>
> I'd like a similar command line option for #(set-global-staff-size 14) .
> Is there a way to achieve this with current version?


It is a way but the problem I find is that the file won't compile with
that commandline option.

Say your file is

% this is example.ly
#(use-modules (guile-user))
#(set-global-staff-size size)
\repeat unfold 20 { c'1 }

%END

you can call it with

  lilypond -e '(define-public size 40)' a.ly

and the value of size will be honoured as global staff size.
-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com



reply via email to

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