# BlackmanHarris

> Blackman-Harris window for FFT spectrum analysis.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AudioModule

```csharp
BlackmanHarris = 5
```

### Remarks

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](/engine/6000.0/script-reference/unityengine/audiolistener/getspectrumdata.md) or [AudioSource.GetSpectrumData](/engine/6000.0/script-reference/unityengine/audiosource/getspectrumdata.md). 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](/engine/6000.0/script-reference/unityengine/fftwindow/blackman.md) is still too high. Expect the widest main lobe and the lowest frequency resolution of the listed windows.

Additional Resources: [FFTWindow](/engine/6000.0/script-reference/unityengine/fftwindow.md), [FFTWindow.Blackman](/engine/6000.0/script-reference/unityengine/fftwindow/blackman.md).
