I embed Lily in a shell script for that kind of thing (I'm running on
Unix):

Something like this which is meant to make MIDI only output:

-----------
#!/bin/sh
LILY=/usr/local/bin/lilypond

LILYVERSION=`$LILY | sed -n 's/^GNU Lilypond \([12]\.[0-9]*\.[0-9]*\).*$/\1/p'`

case "$LILYVERSION" in
    2.10.*)
       # This doesn't seem to work
       midionly=--no-print
       ;;
    2.1[12].*)
       # This works, but Lily still seems to do lots of the typesetting.
       midionly=-dno-print-pages
       ;;
    *)
       # Your mileage may vary
       midionly=--midi
       ;;
    esac

exec $LILY $midionly "$@"

--
Dr Peter Chubb  http://www.gelato.unsw.edu.au  peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au           ERTOS within National ICT Australia
A university is a non-profit organisation only in the sense that it
spends everything it gets  ... Luca Turin.


_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to