Analyzer and tone generator