bpm detect music and heartrate