* Re: lilypond inclusion + pdf crop (getting off-topic)
@ 2005-09-16 18:07 Henning Hraban Ramm
2005-09-16 18:19 ` luigi.scarso
0 siblings, 1 reply; 7+ messages in thread
From: Henning Hraban Ramm @ 2005-09-16 18:07 UTC (permalink / raw)
>wait till you see what a lua enhancec context can do (playing with it
>now) -)
Oh no, not another language!
TeX and MetaPost and PostScript, Perl and Ruby for ConTeXt, Guile for LilyPond, Perl, Python, PHP, Slang, VB and Shell for work, and now Lua - who will learn that lot?
Your personal-bandwidth-restricted Hraban
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lilypond inclusion + pdf crop (getting off-topic)
2005-09-16 18:07 lilypond inclusion + pdf crop (getting off-topic) Henning Hraban Ramm
@ 2005-09-16 18:19 ` luigi.scarso
2005-09-17 6:44 ` Taco Hoekwater
0 siblings, 1 reply; 7+ messages in thread
From: luigi.scarso @ 2005-09-16 18:19 UTC (permalink / raw)
Henning Hraban Ramm wrote:
>>wait till you see what a lua enhancec context can do (playing with it
>>now) -)
>>
>>
>
>Oh no, not another language!
>
>TeX and MetaPost and PostScript, Perl and Ruby for ConTeXt, Guile for LilyPond, Perl, Python, PHP, Slang, VB and Shell for work, and now Lua - who will learn that lot?
>
>
>
I understand this very well....
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lilypond inclusion + pdf crop (getting off-topic)
2005-09-16 18:19 ` luigi.scarso
@ 2005-09-17 6:44 ` Taco Hoekwater
2005-09-18 19:00 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Taco Hoekwater @ 2005-09-17 6:44 UTC (permalink / raw)
luigi.scarso wrote:
> Henning Hraban Ramm wrote:
>
>>> wait till you see what a lua enhancec context can do (playing with
>>> it now) -)
>>
>>
>> Oh no, not another language!
>>
>> TeX and MetaPost and PostScript, Perl and Ruby for ConTeXt, Guile for
>> LilyPond, Perl, Python, PHP, Slang, VB and Shell for work, and now Lua
>> - who will learn that lot?
>>
> I understand this very well....
You guys are missing the point. Hans and I are going to learn Lua so
you won't have to :-)
Taco
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lilypond inclusion + pdf crop (getting off-topic)
2005-09-17 6:44 ` Taco Hoekwater
@ 2005-09-18 19:00 ` Hans Hagen
0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2005-09-18 19:00 UTC (permalink / raw)
Taco Hoekwater wrote:
> You guys are missing the point. Hans and I are going to learn Lua so
> you won't have to :-)
Right, we both need a little challenge every now and then -)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* lilypond inclusion
@ 2005-09-15 9:49 Christopher Creutzig
2005-09-15 14:34 ` Henning Hraban Ramm
0 siblings, 1 reply; 7+ messages in thread
From: Christopher Creutzig @ 2005-09-15 9:49 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 1889 bytes --]
Dear list,
especially Hraban, who had asked for sth like this,
I had tried sending this yesterday, but with the pdf output included,
it was too big for the list.
In any case, please find enclosed a tentative lilypond inclusion file
and a sample
file. The whole thing basically works (though support for non-pdf
versions is currently absent, but should be relatively easy to
implement), but I'm sure I've taken a non-ConTeXt-way at more than one
place and I have a few problems, most of them lilypond-related. The
first three are strictly ConTeXt-related, though:
- I can't include blank lines in \startlilypond...\stoplilypond,
because in the buffer I will get a \par for that. There is
probably some easy way around this, but I haven't found the
idiom yet.
- Currently, the whole generation only works with shell_escape=t.
Is there a way to use the automp mechanism for other external
programs, such as lilypond, as well? It would also save quite
some time to only typeset each piece of music only once.
- How can I detect whether a pdf file contains multiple pages?
- I have only tested the system on my Tiger installation.
I'd like to know if it works for others, too.
- When typesetting a longer block, I'd like to tell lilypond
how much space there is left on the first page, to have music
break across pages smoothly with the text.
- When typesetting a fragment, I'd like to somehow get a proper
baseline from lilypond. I have neither found out how to ask
if there is more than one line typeset, nor for the baseline
(let's say the bottom line of the staff), which obviously depends
on the music actually set. The sample file uses an explicit
\lower command with a trial-&-error value. I assume that
the lilypond TeX backend gives me something that could be
useful here, but I haven't analyzed it in detail.
regards,
Christopher
[-- Attachment #2: t-lilypond.tex --]
[-- Type: application/x-tex, Size: 3709 bytes --]
[-- Attachment #3: lily-test.tex --]
[-- Type: application/x-tex, Size: 1240 bytes --]
[-- Attachment #4: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lilypond inclusion
2005-09-15 9:49 lilypond inclusion Christopher Creutzig
@ 2005-09-15 14:34 ` Henning Hraban Ramm
2005-09-15 21:00 ` andrea valle
0 siblings, 1 reply; 7+ messages in thread
From: Henning Hraban Ramm @ 2005-09-15 14:34 UTC (permalink / raw)
Am 2005-09-15 um 11:49 schrieb Christopher Creutzig:
> especially Hraban, who had asked for sth like this,
Thank you for your work, I can't participate at the moment, am just
too busy.
Perhaps document what you did and what's missing at the wiki page:
http://wiki.contextgarden.net/LilyPond
Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lilypond inclusion
2005-09-15 14:34 ` Henning Hraban Ramm
@ 2005-09-15 21:00 ` andrea valle
2005-09-16 0:37 ` Henning Hraban Ramm
0 siblings, 1 reply; 7+ messages in thread
From: andrea valle @ 2005-09-15 21:00 UTC (permalink / raw)
Hi,
I love both lilypond and context.
In my last project (thanks to which I substantially started using both
in a decent way) I included in metafun code 250 PDFs fragments made by
lily.
Perfect result.
So, I was asking myself: is lily direct inclusion in context so
relevant? Why?
Just for my curiosity.
-a-
On 15 Sep 2005, at 16:34, Henning Hraban Ramm wrote:
> Am 2005-09-15 um 11:49 schrieb Christopher Creutzig:
>
>> especially Hraban, who had asked for sth like this,
>
> Thank you for your work, I can't participate at the moment, am just
> too busy.
>
> Perhaps document what you did and what's missing at the wiki page:
> http://wiki.contextgarden.net/LilyPond
>
>
> Grüßlis vom Hraban!
> ---
> http://www.fiee.net/texnique/
> http://contextgarden.net
> http://www.cacert.org (I'm an assurer)
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
Andrea Valle
Laboratorio multimediale "G. Quazza"
Facoltà di Scienze della Formazione
Università degli Studi di Torino
andrea.valle@unito.it
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lilypond inclusion
2005-09-15 21:00 ` andrea valle
@ 2005-09-16 0:37 ` Henning Hraban Ramm
2005-09-16 14:13 ` lilypond inclusion + pdf crop andrea valle
0 siblings, 1 reply; 7+ messages in thread
From: Henning Hraban Ramm @ 2005-09-16 0:37 UTC (permalink / raw)
Am 2005-09-15 um 23:00 schrieb andrea valle:
> I love both lilypond and context.
> In my last project (thanks to which I substantially started using
> both in a decent way) I included in metafun code 250 PDFs fragments
> made by lily.
> Perfect result.
> So, I was asking myself: is lily direct inclusion in context so
> relevant? Why?
> Just for my curiosity.
How did you get your LilyPond fragments?
The only way I know would be to cut them from whole PDF pages with
Acrobat.
But I'm only a newbie (and I don't really feel like learning Scheme).
I expect all the nasty work to be done by some script/program, similar
to the LilyPond integration with LaTeX.
Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)
^ permalink raw reply [flat|nested] 7+ messages in thread
* lilypond inclusion + pdf crop
2005-09-16 0:37 ` Henning Hraban Ramm
@ 2005-09-16 14:13 ` andrea valle
2005-09-16 16:23 ` lilypond inclusion + pdf crop (getting off-topic) Adam Lindsay
0 siblings, 1 reply; 7+ messages in thread
From: andrea valle @ 2005-09-16 14:13 UTC (permalink / raw)
>
> How did you get your LilyPond fragments?
> The only way I know would be to cut them from whole PDF pages with
> Acrobat.
Ah, I understand the point.
Yes, in my new composition I create a graph connecting some musical
fragment (I don't wanna bore yuo too much with these details). In any
case, I use Context as general typesetting environment, Metafun as
vectorial, scalable, scriptable drawing engine, and lilypond as
notation generator.
The idea is to produce lily files, to render them, to include them in a
metafun drawing, where I can clip and place them opportunely, and to
render context files. My program is written in Python.
But, it's true, I got involved in the problem of cropping PDFs output
by lily (from the a6 format I chose). I solved using externalfigure
clip in metafun.
I tried Imagemagik: it crops the PDFs but it seems that it rasterizes
the image.
So, what can one use to crop a pdf? Preview in macosx, as acrobat, does
the job, but I'd prefer too to use something from the command line.
> But I'm only a newbie (and I don't really feel like learning Scheme).
I don't want, too. I'd like to have python :)
Here are two of the resulting scores (not totally finished yet)
www.semiotiche.it/andrea/membrana/nodi-I.pdf
www.semiotiche.it/andrea/membrana/nodi-II.pdf
and one of the context file
www.semiotiche.it/andrea/membrana/nodi-I.tex
Best
-a-
PS: ah, thanks to the list, without support I won't be able to draw a
line...
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lilypond inclusion + pdf crop (getting off-topic)
2005-09-16 14:13 ` lilypond inclusion + pdf crop andrea valle
@ 2005-09-16 16:23 ` Adam Lindsay
2005-09-16 17:37 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Adam Lindsay @ 2005-09-16 16:23 UTC (permalink / raw)
andrea valle said this at Fri, 16 Sep 2005 16:13:33 +0200:
>Here are two of the resulting scores (not totally finished yet)
>www.semiotiche.it/andrea/membrana/nodi-I.pdf
>www.semiotiche.it/andrea/membrana/nodi-II.pdf
Wow. Fantastic stuff. Having just returned from the ICMC and ISMIR
conferences, it looks very much like it could be a computer's internal
model of a piece.
This cuts very close to my day job, yet I never would have imagined
ConTeXt could enable this for people...
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk
Lancaster University, InfoLab21 +44(0)1524/510.514
Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lilypond inclusion + pdf crop (getting off-topic)
2005-09-16 16:23 ` lilypond inclusion + pdf crop (getting off-topic) Adam Lindsay
@ 2005-09-16 17:37 ` Hans Hagen
2005-09-17 9:28 ` Re[2]: " Giuseppe Bilotta
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2005-09-16 17:37 UTC (permalink / raw)
Adam Lindsay wrote:
>
>This cuts very close to my day job, yet I never would have imagined
>ConTeXt could enable this for people...
>
>
wait till you see what a lua enhancec context can do (playing with it
now) -)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re[2]: lilypond inclusion + pdf crop (getting off-topic)
2005-09-16 17:37 ` Hans Hagen
@ 2005-09-17 9:28 ` Giuseppe Bilotta
2005-09-18 18:23 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Giuseppe Bilotta @ 2005-09-17 9:28 UTC (permalink / raw)
Friday, September 16, 2005 Hans Hagen wrote:
> Adam Lindsay wrote:
>>
>>This cuts very close to my day job, yet I never would have imagined
>>ConTeXt could enable this for people...
>>
>>
> wait till you see what a lua enhancec context can do (playing with it
> now) -)
Perl, Ruby, Lua ... what next?
--
Giuseppe "Oblomov" Bilotta
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lilypond inclusion + pdf crop (getting off-topic)
2005-09-17 9:28 ` Re[2]: " Giuseppe Bilotta
@ 2005-09-18 18:23 ` Hans Hagen
0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2005-09-18 18:23 UTC (permalink / raw)
Giuseppe Bilotta wrote:
>Perl, Ruby, Lua ... what next?
>
>
megapost (by Giuseppe Bilotta)
lualeph (by Giuseppe Bilotta)
i'm told that he will start with that when he finished his thesis -)
(btw, could you do your thesis work without megapost? i thought that it was a prerequisite)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-09-18 19:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-16 18:07 lilypond inclusion + pdf crop (getting off-topic) Henning Hraban Ramm
2005-09-16 18:19 ` luigi.scarso
2005-09-17 6:44 ` Taco Hoekwater
2005-09-18 19:00 ` Hans Hagen
-- strict thread matches above, loose matches on Subject: below --
2005-09-15 9:49 lilypond inclusion Christopher Creutzig
2005-09-15 14:34 ` Henning Hraban Ramm
2005-09-15 21:00 ` andrea valle
2005-09-16 0:37 ` Henning Hraban Ramm
2005-09-16 14:13 ` lilypond inclusion + pdf crop andrea valle
2005-09-16 16:23 ` lilypond inclusion + pdf crop (getting off-topic) Adam Lindsay
2005-09-16 17:37 ` Hans Hagen
2005-09-17 9:28 ` Re[2]: " Giuseppe Bilotta
2005-09-18 18:23 ` Hans Hagen
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).