fftstream
Fast Fourier Transform
new fftstream([options])
Options
Name | Type | Default | Description |
---|---|---|---|
fftsize | enum | 512 | The first argument specifies the number of points (samples) in the FFT. |
framesize | int | 512 | The second argument specifies the number of samples between successive FFTs. |
phase | int | The third argument specifies the offset into the interval where the | |
win_bufname | symbol | RNBODefaultFftWindow | A {rnbo_buffer~} object can be used as an alternative lookup table for |
window | enum | rectangular | Specify which windowing function for the FFT to use (none, the 'rectangular' window, |
Aliases
fft
Methods
next(realIn, imagIn): [out1, out2, out3]
Arguments
Name | Type | Default | Description |
---|---|---|---|
realIn | number | ||
imagIn | number |
Returns
Name | Type | Description |
---|---|---|
out1 | number | The real part of the Fourier transform of the input. |
out2 | number | The imaginary part of the Fourier transform of the input. |
out3 | number | A sync signal that ramps from 0 to the number of points minus 1 |