C# 클래스 GAudio.FFTModule

A Monobehaviour component that enables inspecotr friendly configuration of FFT processing, including windowing of the original data and formatting of the output.
상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: gregzo/G-Audio

공개 프로퍼티들

프로퍼티 타입 설명
customFftSize int
fftSize FFTSize
fromFrequency int
output FFTOutput
toFrequency int
useWindowFunction bool
window WindowFunction

공개 메소드들

메소드 설명
Awake ( ) : void
ComputeDB ( float data ) : void
ComputeMagnitudes ( float data ) : void
ComputeSquareMagnitudes ( float data ) : void
RealFFT ( float data ) : void

Performs windowed in place real FFT of the passed data array, reusing a cached array for the imaginary part. Formats the specified frequency bins according to FFTOutput.

SetWindow ( WindowFunction windowFunction ) : void

Sets and pre-computes the specified WindowFunction for faster processing.

메소드 상세

Awake() 공개 메소드

public Awake ( ) : void
리턴 void

ComputeDB() 공개 메소드

public ComputeDB ( float data ) : void
data float
리턴 void

ComputeMagnitudes() 공개 메소드

public ComputeMagnitudes ( float data ) : void
data float
리턴 void

ComputeSquareMagnitudes() 공개 메소드

public ComputeSquareMagnitudes ( float data ) : void
data float
리턴 void

RealFFT() 공개 메소드

Performs windowed in place real FFT of the passed data array, reusing a cached array for the imaginary part. Formats the specified frequency bins according to FFTOutput.
public RealFFT ( float data ) : void
data float
리턴 void

SetWindow() 공개 메소드

Sets and pre-computes the specified WindowFunction for faster processing.
public SetWindow ( WindowFunction windowFunction ) : void
windowFunction WindowFunction
리턴 void

프로퍼티 상세

customFftSize 공개적으로 프로퍼티

If fftSize is set to FFTSize.Custom this value will be used instead of the audio buffer's size. Note that only power of 2 values are valid.
public int customFftSize
리턴 int

fftSize 공개적으로 프로퍼티

public FFTSize fftSize
리턴 FFTSize

fromFrequency 공개적으로 프로퍼티

The lowest frequency we are interested in. The lowest relevant value is SampleRate / FFT size, but higher values can be specified.
public int fromFrequency
리턴 int

output 공개적으로 프로퍼티

public FFTOutput output
리턴 FFTOutput

toFrequency 공개적으로 프로퍼티

The highest frequency we are interested in. The highest relevant frequency is SampleRate/2 ( Nyquist frequency ). but lower values can be specified.
public int toFrequency
리턴 int

useWindowFunction 공개적으로 프로퍼티

public bool useWindowFunction
리턴 bool

window 공개적으로 프로퍼티

public WindowFunction window
리턴 WindowFunction