Re: One question

[email protected] ("Sean M. Burke") Sat, 20 May 2000 12:53:51 -0600
Newsgroups perl.midi
Message-ID <[email protected]>
At 08:13 AM 2000-05-20 +0200, you wrote:
>[...]
>Do you know where on the internet can I find the Turbo Pascal libraries
>or units containing the source code of functions and procedures which can
>be used to read and analyse MIDI files? I write my programs using Turbo
>Pascal 7.0 for DOS.
>[...]

Sorry, I don't know of any such thing.
But I think that most of my Perl code, specifically the hard and tedious
stuff in MIDI::Event, could be converted line-by-line to Pascal -- except
for the stuff that unpacks data that's in BER format; Perl provides a
shortcut (the "w" format for pack() and unpack()) that implements that.
However, in the MIDI spec (included in the MIDI-Perl dist) there's sample C
code that implements BER unpacking (and maybe packing).  In fact, before I
knew about Perl's unpack() "w" format, I used the sample code from the spec
to implement my own BER-unpacker.

--
Sean M. Burke  [email protected]  http://www.spinn.net/~sburke/