phs Array Operations: complex numbers phs phs Obtains the phases of a complex-number array Description This opcode returns the phases of a complex-number array, as a real-valued array with half the size of its input plus one. The reason for the extra point is to keep the array size equivalent to the output of the mags opcode (which is often used alongside this one). Syntax kout[] phs kin[] Performance kout[] -- output array containing the phases. It will be created if it does not exist. kin[] -- input array containing the complex-valued real-imaginary input. Examples Here is an example of the phs opcode. It uses the file phs.csd. Example of the phs 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