void OnDestroy()
 {
     beatTracker.Dispose();
 }