Update this question was previously titled as \"Give me the name of a simple algorithm for signal(sound) pattern detection\"
Goertzel - You can use it either for simple pattern detection, and for complicated frequencies separation. You can see the sample of my implementation in C#