This program is a variation on midi1270. Data from all 8 channels of the Maxim 1270 are sampled and sent via MIDI using the command 0xA0. The first parameter MIDI byte specifies the channel number (0-7) and the second parameter byte gives the sampled data variable.
The 5 least significant bits of the sampled values are thrown away.
If you want to change the sampled voltage range for a particular channel, you will have to change it in the program by hand. The default range being used is 0 to 5 volts for A/D sampling.
Here is a schematic of the circuitry connected to the Basic Stamp IIsx for use with this program:
Craig Sapp, firstname.lastname@example.org