LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

FFTWindow

enumeration

Description

Spectrum analysis windowing types.

Use this to reduce leakage of signals across frequency bands.

Properties

RectangularW[n] = 1.0.
TriangleW[n] = TRI(2n/N).
HammingW[n] = 0.54 - (0.46 * COS(n/N) ).
HanningW[n] = 0.5 * (1.0 - COS(n/N) ).
BlackmanW[n] = 0.42 - (0.5 * COS(n/N) ) + (0.08 * COS(2.0 * n/N) ).
BlackmanHarrisW[n] = 0.35875 - (0.48829 * COS(1.0 * n/N)) + (0.14128 * COS(2.0 * n/N)) - (0.01168 * COS(3.0 * n/N)).