Its taken a week, and I've got it to
-capture the file names
-Ignore the directory makers "." and ".."
-Run the .exe file and convert the files named in the array
-rename all the files in the director from .mid to .csv
Then it took about 2 minutes to write and debug the reverse process.
I haven't written code since 1979, when I was writing in FORTRAN, using punch-cards and, running the prgrams on an IBM System 370 mainframe. Its been great fun.<\P>
now on to the more daunting task of editing the CSV files so they will work properly when converted back to MIDI format and are used with a finicky biofeedback program that teaches people to sing of all things<\P>
Thanks again to all the monks who gave input.<\P>