What I did for Skink was to write a parser in JavaCC (a java
compiler compiler) which builds a list of objects that represent
the elements of a tune - I then process that list sequentially
to create the notation.  The plan is to process the same list
to produce the music, but since I haven't implemented that yet
I don't know for sure whether I can just use the same list or
whether I have to "unroll" repeats, etc.

Java is nice and portable...

wil

Phil Taylor wrote:

> John Henckel wrote:
> >It's true that when the new ABC standard become approved (I say, hopefully)
> >then a lot of software will need to be rewritten to handle the new file
> >format.  Perhaps someone could write a really portable ABC parser and then
> >give away the source code that each developer can just "plug it in" to
> >their ABC tool (abc2midi, abc2abc, abc2ps, abc2win, abc2???,
> >etc...)  There's no sense in everyone reinventing the wheel.
>
> It's a lovely idea, but it gets awfully complicated when you think
> about it.  What would the output of such a parser be?  Some programs want
> to make a picture of the staff notation, and would therefore want
> postscript, gif or something of that ilk.  Others want to play the music,
> and need MIDI or something equivalent.  The first kind of parser can
> take a single pass through the abc, while the second needs to loop
> to deal with repeats.  In practice, they are so different that I
> wrote two entirely separate tune parsers for BarFly.  The only common
> code is the part which parses the header.
>
> What is needed perhaps is an intermediate representation of the music
> which is easy to convert to either picture or sound.  The first stage
> parser which converts abc to this intermediate format could be used
> by us all, while the remaining part of the job would be handled by
> the developer's own code.  The trouble is, we'd spend forever arguing
> about the details of the intermediate format...
>
> Phil Taylor
>
> To subscribe/unsubscribe, point your browser to: 
>http://www.tullochgorm.com/lists.html

--
Wil Macaulay                         email:   [EMAIL PROTECTED]
voice:  +1-(905)-886-7818  xt2253    FAX:     +1-(905)-886-7824
Syndesis Ltd. 28 Fulton Way Richmond Hill, Ont Canada L4B 1J5
"... pay no attention to the man behind the curtain ..."


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

Reply via email to