Beat detection

Better beat detection maybe....