Exemple #1
0
        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);
        }
Exemple #2
0
 private void InitializeSmoother()
 {
     smoother = new SpectrumSmoother(spectrumSize, smoothingIterations);
 }
Exemple #3
0
 void Awake()
 {
     audioVisualizer  = new AudioVisualizer(ref audioSource, ref audioProfile);
     spectrumSmoother = new SpectrumSmoother(ref audioVisualizer.freqSize, ref smoothingIterations);
     bandSize         = audioProfile.bandSize;
 }