# cartopol

Convert Cartesian values to polar format. Angles are in radians.

## Description

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

## Arguments

### y [number]

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.

## Inlets

### x [number]

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.

### y [number]

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.

## Outlets

### out1 [number]

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.

### out2 [number]

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.

## Fixed Attributes

*
These attributes must be set in the object box and determine the behavior of the object at runtime.
*

### hot [bool] (default: false)

Trigger computation on all inlets.

## Dynamic Attributes

*
These attributes can be modified in the code during execution using the
set
object
*

### reset [bang] (default: 0)

Banging this attribute will reset the object to its default state.

### x [number]

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.

### y [number]

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.

## See Also

Name | Description |
---|---|

cartopol | Convert Cartesian values to polar format. Angles are in radians. |

cartopol | |

fftstream~ | Fast Fourier Transform |

poltocar~ | Convert polar to cartesian coordinates |

poltocar | Convert polar to cartesian coordinates |