Make a Drum Machine

Check this - http://www.instructables.com/id/Secret-Knock-Detecting-Door-Lock/ -

it is not a drum, but it gives you insight how to detect a beat.
You can use 8 pins for 8 sensors and use three PWM pins to control the output, might need an amplifier.