bin
sample rate
window size
Returns a new tuple of real/img F64 buffers of given size.
If given a ComplexArray, computes the complex conjugate, concatenates it in mirrored order to input (excluding bin 0) and returns it as new (complex) array.
Creates a deep copy of given ComplexArray.
Inverse operation of normalizeFFT. De-normalizes the complex FFT array by scaling each complex bin value with given scale factor (or, if given as array, the scale factor derived from these window function samples).
Computes in-place forward FFT for given real/imaginary component buffers (each MUST be pow2 length), optionally with windowing.
Returns array of bin center frequencies for given FFT window size and sample rate. By default only the first N/2+1 values are returned (m
and including 0Hz).
window size
sample rate
number of result values
Returns FFT bin index for given frequency, sample rate and window size. See binFreq for reverse op.
frequency
sample rate
window size
Inverse FFT via computing forward transform with swapped real/imaginary components. Expects denormalized inputs (i.e. the same as the result of fft).
Normalizes the complex FFT array by scaling each complex bin value with given scale factor (or, if given as array, the scale factor derived from these window function samples).
Computes magnitude spectrum for given FFT: y(i) = abs(c(i)). By default only the first N/2 values are returned.
FFT result
bin count
result array
Computes phase spectrum for given FFT and writes results to out
. By default only the first N/2 values are returned.
FFT result
bin count
result array
Computes power spectrum (optionally as dBFS) for the given FFT result arrays (length = N) and optional window
. Writes result to out
or a new array.
Computes the magnitude of each FFT bin and if less than given eps
threshold, sets that bin to zero. Returns input FFT array.
Generated using TypeDoc
Returns frequency for given FFT bin index, sample rate and window size. See freqBin for reverse op.