beat detection attempt