ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* LilyPond nowadays
@ 2011-04-12 23:37 David Wooten
  2011-04-13  2:29 ` Aditya Mahajan
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: David Wooten @ 2011-04-12 23:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1194 bytes --]

Hi all,

I've gotten back to tinkering with LilyPond, and wanted to ask if someone could send a small example of the new method of handling it, especially with some lilypond settings in the .ly file mentioned below. My initial trials make place the lilypond results on their own page. How would we get them placed in-line?

Thanks,
David

RE:
From the garden:

The LilyPond module doesn't work any more with recent versions of ConTeXt. You can simply replace it with the Filter module like this:
\def\readPDFfile#1{\externalfigure[#1]}

\usemodule[filter]
\defineexternalfilter[lilypond]
	[continue=yes,
	readcommand=\readPDFfile,
	directory=lilytemp/, % directory for LilyPond's files
	output={\externalfilterbasefile.pdf},
	filtercommand={lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts -ddelete-intermediate-files -o"lilytemp/\externalfilterbasefile" "\externalfilterinputfile"}]
You can't use \setuplilypond any more, but there is a better replacement: Collect your LilyPond settings in a .ly file, put it in your lilytemp directory and include it from within your lilypond block like this:
\startlilypond
\include "mysettings.ly"
...
\stoplilypond


[-- Attachment #1.2: Type: text/html, Size: 5194 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-04-13 17:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-12 23:37 LilyPond nowadays David Wooten
2011-04-13  2:29 ` Aditya Mahajan
2011-04-13  3:30 ` Aditya Mahajan
2011-04-13  9:18 ` Henning Hraban Ramm
2011-04-13 15:13   ` Aditya Mahajan
2011-04-13 17:38   ` David Wooten

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).