John Chambers wrote:

> Laura writes:
> | I think the problem is that parsing lilypond files is more complicated
> | because they potentially have more structure than ABC files, and can
> | have includes, etc.  I don't know how difficult what you do with the
> | ABC would be in practice.
> 
> I think you're right. Includes are especially troublesome. The reason
> is  that  the directory structure that a program sees from the web is
> not necessarily the same as what a local program  sees  in  the  file
> system.   If  the  include  is  of a file in another directory, a web
> program can't always correctly calculate  what  the  URL  should  be.
> Probably  the only includes you could implement would be for files in
> the same directory.

True.  For example, most Lilypond files include (e.g.):

\include "paper16.ly"

where paper16.ly is a standard Lilypond include.  However, most actual 
includes that you'll care about would be local files, I imagine.  The 
only problem that I'd see there is if the Lilypond file is a symbolic 
link to somewhere on the file system that _really_ has the file in it, 
in which case the ancillary files might be in that directory.

> 
> Of course, if lilypond had an include  that  used  URLs  rather  than
> local file names, this wouldn't be a problem. Such includes are quite
> easy to implement.

As far as I know, this isn't allowed with Lilypond.

> 
> Another big problem I can see:  If my tune index includes, .lp files,
> people  will be expecting the tune finder to extract single tunes and
> return them in PS or GIF or MIDI or whatever formats. The obvious way
> to do this is an lp2abc script ...

Ack, no, definitely not.  Lilypond (.ly) files are much more complex 
than ABC files, and making a translator would be very difficult 
(although possible).  Lilypond includes a "ly2dvi" program which 
translates Lilypond to DVI and (optionally) PostScript and MIDI.  Now, 
the only tricky part is that within the .ly file itself is where the 
\paper {...} and \midi {...} declarations occur, which instruct ly2dvi 
to create paper and MIDI.  So you'd probably have to search in the .ly 
file and add your own \paper {} and \midi {} declarations if they 
weren't there (which they almost always are).

   - Eric

-- 
---=---=-=-==-===-=====//=======//=========-===-==-=-=--=---- <>< -
"God is real, unless  // Name: // Eric Galluzzo // [EMAIL PROTECTED]
 declared integer."  // WWW:  // http://w3.one.net/~eng/
    -- Unknown      // Work: // Synchrony // Product Engineer
---=-=-==-===-=====//=======//=========-===-==-=-=--=-------- <>< -

To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html

Reply via email to