a little more reliable beat detection