lilypond-user
[Top][All Lists]
Advanced

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

Re: stdin input


From: Jule Slootbeek
Subject: Re: stdin input
Date: Mon, 24 Jun 2002 11:45:38 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529

Maurizio Tomasi wrote:
Maurizio Tomasi wrote:

Is it possible to force Lilypond to read a .ly file from the console?
Calling `ly2dvi' without arguments gives an help screen, and `ly2dvi -'
gives an error.

Maurizio

What do you mean?
I usually just run

'ly2dvi file.ly'

and i get the .dvi out of it. and the .midi when i have a \midi {} in
the ly file...

Jule


Yes, but suppose you want to pre-process your .ly file with m4 or cpp.
If ly2dvi does not support reading files from console, you have to
write:

-------------------------------------------------------------------------
% m4 --define=SOMEMACRO test.ly > test-temp.ly
% ly2dvi test-temp.ly
% rm test-temp.ly -f              (in fact, this is optional...)
-------------------------------------------------------------------------

But if Ly2dvi supported some `-'-like param, then I could write:

-------------------------------------------------------------------------
% m4 --define=SOMEMACRO test.ly | ly2dvi -o test.dvi -
-------------------------------------------------------------------------

without creating a temporary file, since ly2dvi would read the Mudela code
from the console.

It would not be a "great" feature, but sometimes it could be handy to have
it...

Maurizio


Aaaah ok, now i get it...that's way over my head..:) sorry i can't help you any farther...i guess Jan and Han-Wen can fix that.

Jule

--
Jule Slootbeek  
address@hidden http://blindtheory.cjb.net




reply via email to

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