public Map(string audioLibrary, Cubeat cubeat) { _cubeat = cubeat; _initialTime = AudioSettings.dspTime; _audioSources.AddRange(GameObject.Find("Audio").GetComponents<AudioSource>()); channelColors.Add(Color.white); channelColors.Add(Color.green); channelColors.Add(Color.yellow); channelColors.Add(Color.Lerp(Color.yellow, Color.red, 0.3f)); channelColors.Add(Color.red); channelColors.Add(Color.Lerp(Color.red, Color.blue, 0.5f)); channelColors.Add(new Color(0.2f, 0.6f, 0.8f)); channelColors.Add(new Color(0.6f, 0.6f, 0.6f)); this.LayerCount = 8; CreateMap(); ReadSamples(audioLibrary); }
void Start() { Cubeat = Camera.main.GetComponent<Cubeat>(); }