lilypond-user
[Top][All Lists]
Advanced

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

Re: Import, edit and export a Lilypond file using Python


From: David Kastrup
Subject: Re: Import, edit and export a Lilypond file using Python
Date: Sun, 06 Apr 2014 14:44:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Joachim Jablon <address@hidden> writes:

> Hello everyone,
>
> I've asked a question on StackOverflow about Lilypond files and
> Python, and someone suggested that I ask the lilypond community
> directly.
>
> For the long version, you can see the question here :
> http://stackoverflow.com/questions/22883594/generating-pdf-midi-from-musicxml-using-python
>
> For the short version :
> I would like to import an existing Lilypond .ly file, remove some
> parts and export the resulting file as .ly/pdf/midi/mp3, using Python.
> (in fact my input is a musicxml file but now I've discovered the
> musicxml2ly script so that's not a problem)
> What would you suggest as the most appropriate tools (probably python
> libs) to do so ?

Manipulating LilyPond files is not trivial, and your description is not
at all useful for figuring out what "remove some parts" is even remotely
supposed to mean.

You might want to do your removal operation while still in MusicXML
using some standard XML manipulation tool, and only then convert to
LilyPond.

-- 
David Kastrup



reply via email to

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