rfft Array Operations: Fast Fourier Transform rfft rfft Fast Fourier Transform of a real-value array. Description Applies a forward Fast Fourier Transform to a real-value input 1-dimensional array. The output is another array containing the transform, non-redundant, non-negative spectrum only. If the input array is power-of-two, the output array size will match the input size, with the first two points containing 0Hz and Nyquist frequency coefficients. Otherwise, the output will have two extra values (input size + 2), and the the Nyquist coefficient will be placed at kin[input_size] position (kin[1] and kin[input_size+1] will be 0]. Syntax kout[] rfft kin[] Performance kout[] -- output array containing the transform. It will be created if it does not exist. kin[] -- input array containing the real-valued input. Examples Here is an example of the rfft opcode. It uses the file rfft.csd. Example of the rfft opcode. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. See Also Vectorial opcodes array opcodes Array-based spectral opcodes Credits Author: &namevictor; NUI Maynooth 2014 New in version 6.04