absMathematical Operations:Mathematical Functionsabsabs
Returns an absolute value.
Description
Returns the absolute value of x.
Syntaxabs(x) (no rate
restriction)abs(k/i[]) (k- or i-arrays )
where the argument within the parentheses may be an expression. Value converters perform arithmetic translation from units of one kind to units of another. The result can then be a term in a further expression.
Examples
Here is an example of the abs opcode. It uses the file abs.csd.
Example of the abs opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
Its output should include lines like:
instr 1: iabs = 0.000
instr 1: iabs = 0.150
instr 1: iabs = 13.000
See alsoMathematical Functions