Sounds like a good approach. I was meaning to brush up on my Python
anyway.
> With categories being different types of scores I want to do for
the same
> song (namely music sheets with all the music, including notes,
chords and
> lyrics; chord sheets with only chord symbols; and lyric sheets
with just
> lyrics and chords).
As you're now running LP with a script, your script(s) could
automatically build several paper.ly <http://paper.ly> files in
turn, and rerun
LP to produce different formats.
You can extend this in any way you like, dealing with other parts
of the LP source that might need to be altered. For example, I have
a script that typesets psalms, and it modifies the source files of
the Anglican chants (which always contain a \transpose f f line),
transposing them into mutually compatible keys before compiling them
into a document for that particular church service.
I haven’t run LilyPond with scripts before. If there’s any
documentation or code examples I should look at, I’d appreciate being
pointed in the right direction.
IOW, use a scripting language to script, and LP to typeset music.
Sound advice.