private void Start() { VisualizerCore.Init(gameObject); VisualizerSelector.Init(this, VisualizerList.List); MakeUnscaledEmpty(); MakeScaledEmpty(); }
public static void Update() { IsBeat = false; float level = Mathf.Max(VisualizerCore.Level(FilterType.LowPass), 0); UpdateBuffer(level); if (_bufferFull) { float oldLastBeat = LastBeat; CheckBeat(); if (oldLastBeat != LastBeat) { IsBeat = true; } } DebugVisualize(_buffer.ToList(), Color.cyan); }
public void OnDeviceSelected(int index) { string id = ((DeviceItem)DeviceList.options[index]).id; VisualizerCore.SelectDevice(id); }