First cut at realtime beat detection