void OnDestroy()
 {
     //if you destroy a game object that is connected to the beat detector then remember to remove it from the beat detector
     detector.RemoveBeatListener(ChangeColor, band);
 }