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

phasewrap~

Wrap a signal between π and -π

Description

phasewrap~ will simply take any input signal and wrap it between π and -π values.

Arguments

None.

Messages

signal The signal to be wrapped. If the input signal value exceeds π (3.14159), the output signal value is "wrapped" to a range whose lower bound is -π (-3.14159). Thus a signal of increasing value outputs a sawtooth waveform with -π and π as lower and upper values.

Information for box attributes common to all objects

Output

signal: The wrapped input signal value.

Examples

Use phasewrap~ to make sure that signals stay within normal radial values

See Also

Name Description
cartopol~ Signal Cartesian to Polar coordinate conversion
pfft~ Spectral processing manager for patchers
pong~ Variable range signal folding
MSP Tutorial 26: Frequency Domain Signal Processing with pfft~ MSP Tutorial 26: Frequency Domain Signal Processing with pfft~