level of difficulty:
A well known way to make weird noises with a electric guitar is to point an infrared remote control at the pickups. This makes a sound like a series of high pitched clicks or beeps.
If you want to go further (and we always try to go further at guitar-list) you can record the signal from your guitar as a WAV file and analyse the waveform. You should be able to decode the signal by counting the peaks and troughs. This link at datasingularity.com tells you how to go about it, and offers an explanation of the effect.
original link http://www.datasingularity.com/html/makeshift_ir.html