A newer version of Max is available. Click here to access the latest version of the documentation

cartopol Reference

Convert cartesian to polar coordinates

cartopol

Description

Converts a cartesian-coordinate pair consisting of real and imaginary values into a polar-coordinate pair consisting of distance and angle values.

Examples

Convert Cartesian to Polar coordinates

Arguments

None.

Attributes

Common Box Attributes

Messages

bang

bang will output the most recently stored coordinate pair conversion.

int

Arguments

coordinate [int]
Converted to float.

float

Arguments

coordinate [float]
In left inlet: The x coordinate of a Cartesian pair to be converted into a polar coordinate pair consisting of distance and angle values. When used in an audio context, the value represents the real part of a frequency domain value to be converted into a polar coordinate pair consisting of amplitude and phase values.

In right inlet: The y coordinate of a Cartesian pair to be converted into a polar coordinate pair consisting of distance and angle values. When used in an audio context, the value represents the imaginary part of a frequency domain value to be converted into a polar coordinate pair consisting of amplitude and phase values.

Output

float

Out left outlet: The distance portion of the polar coordinate pair. When used in an audio context, the value represents the magnitude (amplitude) of the frequency represented by the currently input.

Out right outlet: The angle portion of the polar coordinate pair. When used in an audio context, the value represents the phase, expressed in radians, of the frequency represented by the current input. If only the left outlet is connected, the phase computation is not performed.

See Also

Name Description
Spectral Processing Spectral Processing
atan2
lcd
poltocar
pow
Max Basic Tutorial 11: Procedural Drawing Max Basic Tutorial 11: Procedural Drawing