[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: using Feta outside Lilypond [SOLVED, MOSTLY]
From: |
Graham Percival |
Subject: |
Re: Fwd: using Feta outside Lilypond [SOLVED, MOSTLY] |
Date: |
Fri, 21 Nov 2003 20:38:21 -0800 |
On Tue, 18 Nov 2003 21:38:39 -0500
Kieren Richard MacMillan <address@hidden> wrote:
> For those interested, the following shell command (Mac OS X 10.2.8)
> works wonderfully:
>
> lilypond -P \!:1.ly ; ps2ps \!:1.ps \!:1_.ps ; rm \!:1.ps ; rm -rf
> \!:1.dvi ; open -a /Applications/Preview.app \!:1.pdf
>
> This can be put into an alias (which I call "lilymake"), and does the
> following:
> 1. Invokes the lilypond binary on the filename provided;
> 2. Opens the (PDF) output with Preview.app;
> 3. Invokes the ps2ps binary ("forcing" the font embedding), with
> output to filename_.ps;
> 4. Removes the .dvi file and original .ps file.
I don't think the "-rf" on the "rm -rf \!:1.dvi" is necessary. I
suppose it's safe enough, but seeing a "rm -rf" gave me a twinge or two.
:)
I've found it nicer to work entirely in X11, due to the way it handles
window focus issues. Here's my script (creatively named "ly"):
#!/bin/sh
lilypond $1ly
gv $1ps &
~/tim/timidity -c ~/tim/timidity.cfg -Ow $1midi
esdplay $1wav
This displays the postscript output in gv (which IMO has better keyboard control
than Preview) and plays the midi file.
Cheers,
- Graham