title: arduino signal pattern matching
body: <p>I have a microphone connected to an analog input of my arduino. This microphone is connected to the +5V via a resistor.</p>
  
  <p>What i want to do is to detect "taps" on the microphone and the user will play a sequence (like a drummer). The arduino have to recognize if this is the good sequence (duration between the taps). But we can have a user which will make the sequence faster.</p>
  
  <p>I do not know where to start. I do not think FFT is a good thing because the speed will be different.</p>
  
  <p>Thanks</p>