Greetings all, it’s been quite a while since I tried to use lilypond snippets in a context file. Looks like we’re now using the filter module… can someone post a small working example file to get me started? —there are a number of different & some incomplete approaches to be found, none of which work :) Kind regards, David
Am 2014-06-09 um 04:31 schrieb David Wooten
Greetings all, it’s been quite a while since I tried to use lilypond snippets in a context file. Looks like we’re now using the filter module… can someone post a small working example file to get me started? —there are a number of different & some incomplete approaches to be found, none of which work :)
There’s really just one approach, just different setups of the filter module: http://wiki.contextgarden.net/LilyPond Did the first example work at all? Do you have LilyPond installed, and calling „lilypond“ works? Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
Hi Hraban, thanks very much — yes I am able to get the first examples to work. Is there still a way to insert snippets/single lines of music between paragraphs?
Cheers,
David
On Jun 10, 2014, at 2:53 AM, Henning Hraban Ramm
Am 2014-06-09 um 04:31 schrieb David Wooten
: Greetings all, it’s been quite a while since I tried to use lilypond snippets in a context file. Looks like we’re now using the filter module… can someone post a small working example file to get me started? —there are a number of different & some incomplete approaches to be found, none of which work :)
There’s really just one approach, just different setups of the filter module: http://wiki.contextgarden.net/LilyPond
Did the first example work at all? Do you have LilyPond installed, and calling „lilypond“ works?
Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Am 2014-06-11 um 00:26 schrieb David Wooten
Hi Hraban, thanks very much — yes I am able to get the first examples to work. Is there still a way to insert snippets/single lines of music between paragraphs?
Between paragraphs should just work like that. If you’d like to avoid \startlilypond … \stoplilypond, try \inlinelilypond{…} If the one \include line is too much for your use case, you should look into how you can inject that automatically in the buffer file. If you don’t want to include your lilypond settings file every time, follow the advise in filter’s docs regarding LaTeX package „skak“ („Prepend and append text“): http://modules.contextgarden.net/dl/t-filter/doc/context/third/filter/filter... Please add your solution to the wiki! Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
On Jun 11, 2014, at 1:51 AM, Henning Hraban Ramm
Am 2014-06-11 um 00:26 schrieb David Wooten
: Hi Hraban, thanks very much — yes I am able to get the first examples to work. Is there still a way to insert snippets/single lines of music between paragraphs?
Between paragraphs should just work like that.
Both examples (1st page & multipage insertion) place the snippet on its own page, e.g. this gives me a 3 page document w/ snippet on page 2: \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"}] \starttext \input zapf \inlinelilypond{c d e f g a b c} \input zapf \stoptext (same result for \startlilypond … \stoplilypond) OS X Mavericks
If you’d like to avoid \startlilypond … \stoplilypond, try \inlinelilypond{…}
If the one \include line is too much for your use case, you should look into how you can inject that automatically in the buffer file.
If you don’t want to include your lilypond settings file every time, follow the advise in filter’s docs regarding LaTeX package „skak“ („Prepend and append text“): http://modules.contextgarden.net/dl/t-filter/doc/context/third/filter/filter...
Please add your solution to the wiki!
I certainly will, Thanks David
Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Am 2014-06-12 um 23:00 schrieb David Wooten
Both examples (1st page & multipage insertion) place the snippet on its own page, e.g. this gives me a 3 page document w/ snippet on page 2:
The LilyPond settings are essential, otherwise LP produces whole pages, that’s not a problem of ConTeXt. Please read and follow the wiki. Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
Right! Got it.
On Jun 12, 2014, at 10:37 AM, Henning Hraban Ramm
Am 2014-06-12 um 23:00 schrieb David Wooten
: Both examples (1st page & multipage insertion) place the snippet on its own page, e.g. this gives me a 3 page document w/ snippet on page 2:
The LilyPond settings are essential, otherwise LP produces whole pages, that’s not a problem of ConTeXt. Please read and follow the wiki.
Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
___________________________________________________________________________________ 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 ___________________________________________________________________________________
participants (3)
-
David Wooten
-
David Wooten
-
Henning Hraban Ramm