lilypond-user
[Top][All Lists]
Advanced

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

Re: context and lilypond


From: David Kastrup
Subject: Re: context and lilypond
Date: Sun, 20 Jan 2013 11:37:53 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Henning Hraban Ramm <address@hidden> writes:

> Am 2013-01-20 um 10:40 schrieb Stefan Thomas:
>
>> Dear community,
>> when I want to use lilypond within context (the latex alternative
>> system), do I have to install the lilypond-module separately?
>> Can give someone  a short example of code of a document with lilypond code?
>> Does context cooperate with the latest stable version of lilypond?
>
> Hi Stefan,
> you don’t need the (deprecated) LilyPond module any more at all.
>
> Use the filter module, as mentioned in http://wiki.contextgarden.net/LilyPond
> (Anything below the section "Deprecation Warning" is invalid/unnecessary.)
>
> You can save the following snippet as "t-lilyfilter.tex" and 
> \usemodule[lilyfilter]
>
> --- >8 ---
>
> \startmodule[lilyfilter]
>
> \def\readPDFfile#1{\externalfigure[#1]}
>
> \usemodule[filter]
> \defineexternalfilter[lilypond]
>       [continue=yes,
>       readcommand=\readPDFfile,
>       directory=lilytemp/,
>       output={\externalfilterbasefile.pdf},
>       filtercommand={lilypond -dbackend=eps -dinclude-eps-fonts 
> -dno-gs-load-fonts -o"lilytemp/\externalfilterbasefile" 
> "\externalfilterinputfile"}]
>
> \stopmodule

What are the performance characteristics?  One point of LilyPond-book is
that it compiles a large number of fragments with a single run of
LilyPond.  That makes, for example, compilation times of our manuals
less unbearable.

-- 
David Kastrup




reply via email to

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