trying to figure out how to do beat detection