trying to make beat detection working