If you don't mind building a box to hold the switches and a credit-card sized PCB, you could probably find an electronics friend to whip up a MIDI output and write some program code. Your requirements are very simple, so the coding should not take much more than one hour.
These boards are about...