void Start()
 {
     //here you tell the beat detector which function it should call
     detector = GameObject.Find("BeatDetector").GetComponent <BeatDetector>();
     detector.AddBeatListener(ChangeColor, band);
 }
 void Start()
 {
     //here you tell the beat detector which function it should call
     detector = GameObject.Find("BeatDetector").GetComponent<BeatDetector>();
     detector.AddBeatListener(ChangeColor, band);
 }