lilypond-user
[Top][All Lists]
Advanced

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

Re: implicitly running a lilypond script through a python script before


From: David Wright
Subject: Re: implicitly running a lilypond script through a python script before compilation
Date: Tue, 3 May 2016 13:12:15 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Sun 01 May 2016 at 23:04:05 (+0000), Joseph Chrestien wrote:
> > Yes, see this thread in the german forum
> > http://www.lilypondforum.de/index.php?topic=2087.0
> discussed are different possibilities:
> 
> > (1) python from within a lilyfile.ly:
> 
> Yay, it works! I have "Hello world" in the log, which is already great.
> 
> However, I can't find yet whether I have some chance of recursively modifying 
> the Lilypond input through python before compilation goes any further... the 
> German forum conversation does not mention that and I suspect it will not be 
> very easy... However, I should be able to read from it and (over)write an 
> external lilyfile, then have that one included in the original score. Looking 
> good to me.
> 
> I'll keep you updated with that. Thanks for the tip (I'm desperate with Guile 
> :S)

It works for me on linux. I've also attached the file that gets
written on the fly. Whether make-cake.py can read yummy.ly while
LP is also processing it may depend on your OS.

Cheers,
David.

Attachment: make-cake.py
Description: Text Data

Attachment: yummy.ly
Description: Text Data

Attachment: yummy.pdf
Description: Adobe PDF document

Attachment: eat-me.ly
Description: Text Data


reply via email to

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