Box-O-Trix - Source code
The Box-O-Trix software is fairly simple - MIDI Note On messages for odd numbered notes turn on one gate signal, and messages for even numbered notes turn on another. The corresponding MIDI Note Off messages turn off the gates. It also responds to All Sound Off and All Notes Off messages. Here is the source code:
boxotrix_source.zip
It was developed in MPLAB IDE and will compile using the MPASM Assembler.
If you don't have a PIC programmer you can buy a PIC pre-programmed.
More ..