Changes

Jump to navigation Jump to search
729 bytes added ,  23:00, 4 January 2006
hints about newer LilyPond versions (2.7.26)
Calling lilypond from ConTeXt via shell exit (write18) in MacOS X also fails, even if the shell's path is right. (Seems more like write18 wouldn't use the environment.) Modify the module (try <tt>which lilypond</tt> to get its path).
 
LilyPond 2.7.26 comes without a command line "version", at least in the MacOS X edition, i.e. the <tt>lilypond.sh</tt> script is missing.
Here's it's relevant content:
 
#!/bin/sh
## where was the app installed?
INSTALLDIR=/Applications
if [ "$1" == "--print-appdir" ]; then
echo "$INSTALLDIR/LilyPond.app/"
exit 0
fi
# where to put the output
export LILYPOND_DESTDIR=`pwd`
# run the program
python "$INSTALLDIR/LilyPond.app/Contents/Resources/lilycall.py" \
"$INSTALLDIR/LilyPond.app/" $@
 
Save this as <tt>lilypond.sh</tt>, make it executable and symlink it into a directory on your path, e.g.
chmod a+x lilypond.sh
sudo ln -s lilypond.sh /usr/local/bin/lilypond
=== LilyPond stops with an 'Unbound variable' error ===
The [http://modules.contextgarden.net/t-lilypond LilyPond module] as of 2005-09-12 uses deprecated syntax some commands in its headerthat work only with LilyPond 2.6 (at least no more with 2.7.25); replace "ly:parser-print-score" with "print-score-with-defaults" and "ly:music-scorify" with "scorify-music". Maybe this is only an issue with for LilyPond 2.7series.
[[Category:Modules]]
[[Category:Music]]
[[Category:Requests]]

Navigation menu