If you already have Tcl/Tk and tclmidi up and running, you only need to
read the last two paragraphs of this document.  Otherwise read on..

What you'll need to get started:

  Tcl/Tk : available by anonymous ftp from ftp.cs.berkeley.edu.  Look 
           in /ucb/tcl, and get tcl7.4.tar.Z, tk4.0.tar.Z.

  tclmidi: Mike Durian's midi-editing extensions.  Ftp to xor.com and
           look in /pub/midi.  The latest version is 3.0n.  You'll need
           to make tclmidi and tkmidi -- both are included in the tclmidi
           package.  Tclmidi supports MPU-401 compatible MIDI cards under
           BSD, Linux and SVR4.  You don't need a MIDI interface to use
           tclmidi, however.  NB I found I have little or no use for wish
           and tclsh, so I deleted them after installing the midi versions.

If you want to use the randomization stuff you'll also have to add random
number support to Tcl/tclmidi.  Get the patches in rand-0.2.tar.gz and 
apply them to your tclmidi sources.  These patches are available via
anonymous ftp from jagger.me.berkeley.edu -- unpack the archive and
check out the instructions in README.rand.  Right now they only really 
work under Linux -- at least on DEC and Sun I haven't found a replacement
for the BSD 4.3 function infnan().  Let me know if it works on your box,
and if so what you needed to change.

I'd suggest that you:
  1) get Tcl/Tk working first.
  2) get tclmidi working next.
  3) patch in rand() support to tclmidi (if you want)
  4) fire up tkseq.

If you only want screen shots, tkseq will now run under wish (without
tclmidi).  It's not very useful, but at least you can see what you're
getting.  Just change the first line of tkseq to point to wish, rather
than to tkmidi.

Once you have tclmidi working, installation of `tkseq' is as easy as:

  1) copy the bitmaps from ./bitmaps into /usr/include/X11/bitmaps
     (or edit the script to point to wherever you keep them..)
  2) Put the tkseq script in your path, and make sure the first line
     of the script points to tkmidi (default is /usr/local/bin/tkmidi).
  3) Make sure to tell your window manager about the tkseq icon ;-)

I'm releasing this under GPL -- use it, hack on it, have fun with it.
The details are in the script..  By all means keep me posted if it
really works for you, or if you've made some groovy modifications that
we could all enjoy.  

Good luck,
Greg

p.s. Attention Linux users with sound cards emulating MPU-401 hardware!
If things are working well for you, drop me a line and let me know what
you ended up doing (i.e. with the Linux sound driver).  If you're having
problems, drop me a line as well and maybe we can straighten it out.
If you can't even load the midi module, try recompiling it without the
flag -DCONFIG_MODVERSIONS.. your kernel probably doesn't support it.
