lilypond-user
[Top][All Lists]
Advanced

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

Re: Lilypond svg output to stdout?


From: Curt McDowell
Subject: Re: Lilypond svg output to stdout?
Date: Fri, 22 May 2020 12:45:55 -0700
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

A way to output to stdout directly (on Linux):

   $ ln -s /dev/stdout foo.svg
   $ lilypond -dbackend=svg -o foo music.ly

Regards,
Curt

On 5/5/2020 2:42 PM, David Wright wrote:
On Sun 03 May 2020 at 12:22:31 (+0200), Valentin Villenave wrote:
On 4/30/20, David Wright <address@hidden> wrote:
On Thu 30 Apr 2020 at 21:58:28 (+0200), Marcel Aartsen wrote:
I don't think you can use stdout itself, as LP already uses it.
Well, there *used* to be some work towards something like that; see
the framework-socket.scm file in LilyPond’s source code…

I haven't tested whether LP *insists* on adding an .svg extension.
It does, but that can be overriden:
https://lists.gnu.org/archive/html/lilypond-user/2019-12/msg00414.html
Probably hardly worth the effort in this case (and when using files,
it's easy enough to rename them).

BTW I tested my example just by catting the pipe (to let LP run to
completion) and piping the output into less as the consumer (to save
it spewing onto the terminal).

I ought to make it clear that it was intended for the SVG-consumer
to normally be a program, like inkscape. So summarising:

   $ mkfifo foo.svg
   $ lilypond -dbackend=svg -o foo music.ly

   $ inkscape foo.svg

on two terminals, or

   $ mkfifo foo.svg
   $ lilypond -dbackend=svg -o foo music.ly &
   $ inkscape foo.svg

on one.

Sometime, perhaps, I'll try it on two machines, using a socket.

Cheers,
David.




reply via email to

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