{\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf210 \cocoascreenfonts1{\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \deftab560 \pard\pardeftab560 \f0\b\fs36 \cf0 Operators \b0 \ \fs24 \ SuperCollider supports operator overloading. Operators can thus be applied to a variety of different objects; Numbers, Ugens, Collections, and so on. When operators are applied to ugens they result in BinaryOpUGens or UnaryOpUGens. See the \b BinaryOpUGen \b0 overview \b \b0 helpfile for details.\ \ \b Unary Operators \b0 \ \fs18 \ \fs24 neg .. inversion\ reciprocal .. reciprocal\ abs .. absolute value\ floor .. next lower integer\ ceil .. next higher integer\ frac .. fractional part\ sign .. -1 when a < 0, +1 when a > 0, 0 when a is 0\ squared .. a*a\ cubed .. a*a*a\ sqrt .. square root\ exp .. exponential\ midicps .. MIDI note number to cycles per second\ cpsmidi .. cycles per second to MIDI note number\ midiratio .. convert an interval in MIDI notes into a frequency ratio\ ratiomidi .. convert a frequency ratio to an interval in MIDI notes\ dbamp .. decibels to linear amplitude\ ampdb .. linear amplitude to decibels\ octcps .. decimal octaves to cycles per second\ cpsoct .. cycles per second to decimal octaves\ log .. natural logarithm\ log2 .. base 2 logarithm\ log10 .. base 10 logarithm\ sin .. sine\ cos .. cosine\ tan .. tangent\ asin .. arcsine\ acos .. arccosine\ atan .. arctangent\ sinh .. hyperbolic sine\ cosh .. hyperbolic cosine\ tanh .. hyperbolic tangent\ distort .. distortion\ softclip .. distortion\ isPositive .. 1 when a >= 0, else 0\ isNegative .. 1 when a < 0, else 0\ isStrictlyPositive .. 1 when a > 0, else 0\ (36)\ \fs18 \ \b\fs24 Binary Operators \b0 \ \fs18 \ \fs24 + .. addition\ - .. subtraction\ * .. multiplication\ / .. division\ % .. float modulo\ ** .. exponentiation\ < .. less than\ <= .. less than or equal\ > .. greater than\ >= .. greater than or equal\ == .. equal\ != .. not equal\ = b \}\ amclip .. two quadrant multiply \{ 0 when b <= 0, a*b when b > 0 \}\ scaleneg .. nonlinear amplification \{ a when a >= 0, a*b when a < 0 \}\ clip2 .. bilateral clipping \{ b when a > b, -b when a < -b, else a \}\ wrap2 .. bilateral wrapping\ fold2 .. bilateral folding\ excess .. residual of clipping a - clip2(a,b)\ (36)\ \ \ \ }