initialized beatdetector