phsArray Operations: complex numbersphsphs
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).
Syntaxkout[] phs kin[]Performancekout[] -- 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 AlsoVectorial opcodesarray opcodesArray-based spectral opcodesCreditsAuthor: &namevictor;NUI Maynooth2014New in version 6.04