BlackmanHarris
Blackman-Harris window for FFT spectrum analysis.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Field
- Namespace: UnityEngine
- Assembly: UnityEngine.AudioModule
BlackmanHarris = 5
Remarks
Window function: , where is the sample index and is the window length.
W[n] = 0.35875 - 0.48829 * cos(2π * n/N) + 0.14128 * cos(4π * n/N) - 0.01168 * cos(6π * n/N)nNPass this value to the parameter of AudioListener.GetSpectrumData or AudioSource.GetSpectrumData. The window is applied before the FFT to reduce spectral leakage between frequency bins.
windowThe Blackman-Harris window provides the strongest sidelobe suppression in this enum. Choose it when peaks must be well isolated and leakage from FFTWindow.Blackman is still too high. Expect the widest main lobe and the lowest frequency resolution of the listed windows.
Additional Resources: FFTWindow, FFTWindow.Blackman.