analyze frequencies in tones