![](https://secure.gravatar.com/avatar/c0debabce99530998c64f82f88ab3c75.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Tue, 12 Apr 2011, David Wooten wrote:
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?
Do you know what options to pass to lilypond so that it outputs a pdf trimmed to the size of the music snippet? Aditya
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Tue, 12 Apr 2011, David Wooten wrote:
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?
Here is a working example. I don't understand lilypond, so I don't know what are the best options to pass to the program. https://github.com/adityam/filter/blob/dev/tests/lilypond-test.tex Aditya
![](https://secure.gravatar.com/avatar/5a39f1335b6eff433673ed987859fb24.jpg?s=120&d=mm&r=g)
Am 2011-04-13 um 01:37 schrieb David Wooten:
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?
Do you mean in-line music snippets (i.e. within a line of text)? I don’t know, never needed it - and it worked never properly with t- lilypond either. The setup I published in the wiki works for me, I made several songbooklets this way. The mentioned LilyPond settings file is nothing magic - just a LilyPond file, containing LilyPond or Scheme code. It has nothing to do with ConTeXt’s image placement. You don’t need it, if you don’t need it ;-) Find mine attached. Maybe you need the settings of the paper block. Aditya, LilyPond’s preview mode doesn’t help - it just makes a preview (first line) of your music. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
![](https://secure.gravatar.com/avatar/c0debabce99530998c64f82f88ab3c75.jpg?s=120&d=mm&r=g)
On Apr 13, 2011, at 2:18 AM, Henning Hraban Ramm wrote:
Am 2011-04-13 um 01:37 schrieb David Wooten:
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?
Do you mean in-line music snippets (i.e. within a line of text)? I don’t know, never needed it - and it worked never properly with t-lilypond either.
Yes, I did mean snippets. I did have it working very well for me a few years ago, tinkering a bit with the module to get the snippets the correct width/placement in reference to the text.
The mentioned LilyPond settings file is nothing magic - just a LilyPond file, containing LilyPond or Scheme code. It has nothing to do with ConTeXt’s image placement. You don’t need it, if you don’t need it ;-) Find mine attached. Maybe you need the settings of the paper block.
Ah, I see. Thanks for the example. *** On Apr 13, 2011, at 8:13 AM, Aditya Mahajan wrote:
On Wed, 13 Apr 2011, Henning Hraban Ramm wrote:
Aditya, LilyPond’s preview mode doesn’t help - it just makes a preview (first line) of your music.
That should work for inline snippets, right?
I'd love to hear if so . . . Thanks, David
participants (3)
-
Aditya Mahajan
-
David Wooten
-
Henning Hraban Ramm