smarter beat detection