beat detection not working