Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

FFTWindow.BlackmanHarris

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Blackman-Harris window for FFT spectrum analysis.

Window function: W[n] = 0.35875 - 0.48829 * cos(2π * n/N) + 0.14128 * cos(4π * n/N) - 0.01168 * cos(6π * n/N), where n is the sample index and N is the window length.

Pass this value to the window parameter of AudioListener.GetSpectrumData or AudioSource.GetSpectrumData. The window is applied before the FFT to reduce spectral leakage between frequency bins.

The 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.