how to make drum trigger switch on digital pin with note? please help

Anybody can help me to make a code drum trigger on digital pin with note, if the pad hit! please help me to sketch the code.

A few more details please. What sort of "pad"? How many pads? Why particularly a "digital pin"? How is the "note" created? Sent to a speaker or amplifier or sent as MIDI message to something?

Or you could just Google "Arduino drum kit pads" and see how hundreds of people before you did it.

Steve