The MIDI module provides MIDI input parsers for Python.

Documentation is in MIDI.txt.

Please, contact Eric S. Tiedemann <est@hyperreal.org> with comments,
suggestions, patches, etc.

To install this, make sure Python (http://www.python.org/) 1.5 or
newer is installed.  You will also need distutils
(http://www.python.org/sigs/distutils-sig/) which will be included
with Python 1.6.  Make sure python is in your path.  Then do:

  python setup.py install

You can run test.py and it will read MIDI from standard input.  On
UNIX systems with OSS compatible device bindings (e.g., Linux), this
is conveniently tested with:

  dd bs=1 </dev/midi | python example/test.py

The dd command alone can be used to see if any bytes *are* readable
from your MIDI device.

If you have no MIDI device handy, you can do:
  
  python example/midispew.py | python example/test.py


Developer's note:

I've found distutils 1.3 a little difficult to use for the development
cycle when it involves extension modules (see late February 2000
traffic on the develpment process in the distutils-sig archive).  So,
for the moment, I use Makefiles for development builds directly in the
source directory.  Note that the CFLAGS definition in the top-level
Makefile will have to be changed when Python 1.6 comes out.  However,
hopefully by then disutils will be easier to use for development. :)
