add a factor that should decrease the error caused by missing peaks
changed latest bpm result to be CGFloat