protected override void PerformTransform(float[] input, ref float[] output) { if (_smoother == null || _smoother.SmoothingIterations != Iterations) { _smoother = new SpectrumSmoother(input.Length, Iterations); } output = _smoother.GetSpectrumData(input); }
private void InitializeSmoother() { smoother = new SpectrumSmoother(spectrumSize, smoothingIterations); }
void Awake() { audioVisualizer = new AudioVisualizer(ref audioSource, ref audioProfile); spectrumSmoother = new SpectrumSmoother(ref audioVisualizer.freqSize, ref smoothingIterations); bandSize = audioProfile.bandSize; }