Detect the pitch(frequency) of a sound input