Specifications

34 Using Pure Data
Object Function
cos
The cosine of a number given in radians. Domain: −π/2
to +π/2. Range: −1.0 to +1.0.
sin
The sine of a number in radians, domain −π/2 to +
π/2, range −1.0 to +1.0
tan
Tangent of number given in radians. Range: 0.0 to ∞
at ±π/2
atan
Arctangent of any number in domain ±∞ Range: ±π/2
atan2
Arctangent of the quotient of two numbers in Carte-
sian plane. Domain: any floats representing X, Y pair.
Range: angle in radians ±π
exp
Exponential function e
x
for any number. Range 0.0
to ∞
log
Natural log (base e) of any number. Domain: 0. 0
to ∞. Range: ±∞ (−∞ is −1000.0)
abs
Absolute value of any number. Domain ±∞. Range 0.0
to ∞
sqrt
The square root of any positive number. Domain
0.0 to ∞
pow
Exponentiate the left inlet to the power of the right inlet.
Domain: positive left values only.
fig 3.25: Table of message trigonometric and higher math oper ators
Comparative objects
In Tbl. 3.27 you can see a summary of comparative objects. Output is either
1 or 0 depending on whether the comparison is true or false. All have hot left
inlets and cold right inlets and c an take an argument to initialise the righthand
value.
Object Function
>
True if the number at the left inlet is greater than the
right inlet.
<
True if the number at the left inlet is less than the right
inlet.
>=
True if the number at the left inlet is greater than or
equal to the right inlet.
<=
True if the number at the left inlet is less than or equal
to the right inlet.
==
True if the number at the left inlet is equal to the right
inlet.
!=
True if the number at the left inlet is not equal to the
right inlet
fig 3.27: List of comparative operators