lilypond-user
[Top][All Lists]
Advanced

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

Using Lilypond as a Lilypond preprocessor.


From: Darius Blasband
Subject: Using Lilypond as a Lilypond preprocessor.
Date: Tue, 28 Dec 2004 10:22:54 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616

Hi,

I think it might be a good idea for Lilypond to provide a facility which, based on an input file, provides a normalized intermediate file which is itself a valid Lilypond file, with exactly the same semantics as the original one, but where the variables (or at least, the user-define ones) are expanded, all pitches and
note durations are set to their absolute value, etc...

This file would definitely not be meant to be edited, but would be used for further processings. Since it is much simpler than a plain Lilypond file, reading it would be much simpler. Since all pitches and note
durations are set explicitly, there is no room for misunderstanding.

For instance one might consider rewriting the MIDI generator based on this intermediate file (and allow for the current implementation to be phased out, as no one wants to work at it, and as it seems to deal with excessively complex data structures), or a Midge generator, or a MusicXML
export, or even a Finale Export (ok, ok, just kidding... :-) )

Since this intermediate file is a valid Lilypond file, an intermediate pass can perform some kind of transformation
on it before passing it back to Lilypond for actual processing.

Is this reasonable ? or is Lilypond's internal data structure too complex for this to be feasible ?

Cheers,

Darius.







reply via email to

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