ドキュメント

Unity Engine

Unity Engine

Blackman

Blackman window for FFT spectrum analysis.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AudioModule
Blackman = 4

Remarks

Window function:
W[n] = 0.42 - 0.5 * cos(2π * n/N) + 0.08 * cos(4π * 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.
Use the Blackman window when you need lower sidelobes than FFTWindow.Hamming or FFTWindow.Hanning and can accept a wider main lobe. For even stronger sidelobe suppression, use FFTWindow.BlackmanHarris.