I built an ice cream pail drum machine interface as a kid using cheap piezoelectric speakers (in reverse to generate a signal). This was amplified and brought into a micro-controller to generate a MIDI signal for the drum machine. It actually worked pretty well.