Forward short-time Fourier transform UGen for a real-valued input signal.
The FFT size is equal to size + padding
. The output is a succession
of complex half-spectra, i.e. from DC to Nyquist. Depending on mode
,
the output window size is either size + padding
or size + padding + 2
.
- Value parameters:
- in
the real signal to transform. If overlapping windows are desired, a
Sliding
should already have been applied to this signal, as well as multiplication with a window function.- mode
packing mode.
0
(default) is standard "packed" mode, whereby the real part of the bin at Nyquist is stored in the imaginary slot of the DC. This mode allows perfect reconstruction with aReal1IFFT
using the same mode.1
is "unpacked" mode, whereby the output windows are made two samples longer, so that the Nyquist bin is included in the very end. By definition, the imaginary parts of DC and Nyquist are zero. This mode allows perfect reconstruction with aReal1IFFT
using the same mode.2
is "discarded" mode, whereby the Nyquist bin is omitted. While it doesn't allow a perfect reconstruction, this mode is useful for analysis, because the output window size is equal to the fft-size, and the imaginary part of DC is correctly zero'ed.- padding
amount of zero padding for each input window.
- size
the time domain input window size
- Companion:
- object