
This directory contains two example programs to read and write data
between the MIDI driver and standard Level 0 midifile.  The
Midifile format is specified by the MIDI Manufacturer's Association,
and is a machine independant format allowing the interchange of 
MIDI (Musical Instrument Digital Interface) sequence data.

The program playmidifile reads a standard Level 0 midifile 
and plays it out through the MIDI driver.  This program 
illustrates both how to parse a  midifile and how to use the
MIDI driver in a simple application.
 
The program recordmidifile read MIDI data from the MIDI driver
and writes directly to a file in the standard Level 0 midifile
format.  This simple commandline utility records MIDI data until
control-c is typed, which then causes the collected data to
be written to a file.  

For both utilities, the user must supply a file name argument, and can give 
an argument to specify which serial port to accept data on.

There are a couple of test midifiles supplied to serve as simple
examples;  they of course require a MIDI synthesizer to play them 
on.  Some attempt was made to provide "machine independant music',
so they should make some reasonable music on any synthesizer, but
experiment around with different voices to achieve the best effect.

Also necessary, of course, is a MIDI interface.  Any standard Apple
MIDI interface will work with the NeXT Computer.


