bug-lilypond
[Top][All Lists]
Advanced

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

Re: [Fwd: Command line option -e]


From: Han-Wen Nienhuys
Subject: Re: [Fwd: Command line option -e]
Date: Wed, 03 Aug 2005 12:32:02 +0200
User-agent: Mozilla Thunderbird 1.0.6-1.1.fc4 (X11/20050720)

Mats Bengtsson wrote:
Since nobody has come up with an answer or comment, I
forward the issue to bug-lilypond.

   /Mats


I use LilyPond 2.6.1 on Fedora Core 4 and I'd like to use the -e command
line option, which makes lilypond evaluate a Scheme expression. I'd like
examples of this option usage are given in the documentation, because I
didn't manage to use it.
In fact I'd like to set paper size or other options from the command
line. Chris Sawer's post on 11 Nov 2004 about the same problem
(http://lists.gnu.org/archive/html/lilypond-user/2004-11/msg00186.html)
didn't get any answer.
Here's the terminal output:
        [bash test]$ lilypond -e \(set-default-paper-size "a4"\) test3.ly
        GNU LilyPond 2.6.1
        ERROR: In procedure list:
        ERROR: end of file
        [bash test]$ lilypond -e \(set-default-paper-size \"a4\"\) test3.ly
        GNU LilyPond 2.6.1
        ERROR: In procedure list:
        ERROR: end of file
        [bash test]$ lilypond -e \(set-default-paper-size \"a4\"\)
        GNU LilyPond 2.6.1
        ERROR: In procedure list:
        ERROR: end of file
        [bash test]$ lilypond -e \(set-global-staff-size 23\) test3.ly
        GNU LilyPond 2.6.1
        ERROR: In procedure list:
        ERROR: end of file
I also tried the same commands with replacing '-e ' by '--evaluate=',
and got the same result.


Try

  lilypond -e "(bla \"52\")" ..

it won't work for the things you're trying to do, because the -e is executed before the .ly is parsed. What should happen is that default paper and staff size should be set with ly:get-option (see the settings at the top of lily.scm), so you could do

  lilypond -dstaff-size=22 -dpaper-type=\"a4\"

Any takers for a patch?  Or sponsors?


--
 Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen




reply via email to

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