[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Set global staff size as command line option
From: |
Colin Hall |
Subject: |
Re: Set global staff size as command line option |
Date: |
Sat, 10 Dec 2011 12:19:18 +0000 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Fri, Dec 09, 2011 at 11:35:45PM +0100, Xavier Scheuer wrote:
>
> It would be nice to add my initial request (first message of this
> thread) to the tracker also. Maybe I was not clear, but that feature
> request has its place on the tracker, isn't it?
>
> On 7 December 2011 15:01, Xavier Scheuer <address@hidden> wrote:
> > 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?
Not with the same syntax as you show for paper-size, but it is possible. See
earlier posts and my example below.
It looks like the developers have selected some variables, including
paper-size, for inclusion in the ly:set-option feature. I'll create a feature
request and let them determine if it is possible or desireable to add
global-staff-size.
In the meantime, this is how to do it using the -e command line option.
--- test.ly ---
\version "2.14.2"
#(use-modules (guile-user))
#(set-global-staff-size mySize)
{
c''4 c''4 c''4 c''4 |
}
----
And then on the UNIX command line:
lilypond -e'(define-public mySize 14)' test.ly
Or for Windows (I haven't tested this):
lilypond "-e(define-public mySize 14)" test.ly
Cheers,
Colin.
--
Colin Hall