-
- SuperCollider 2.0 Unit Generators :
-
- Unary Operators
-
- 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
-
- Binary Operators
-
- + .. addition
- - .. subtraction
- * .. multiplication
- / .. division
- % .. float modulo
- ** .. exponentiation
- < .. less than
- <= .. less than or equal
- > .. greater than
- >= .. greater than or equal
- == .. equal
- != .. not equal
- <! .. return first argument
- min .. minimum of two
- max .. maximum of two
- round .. quantization by rounding
- trunc .. quantization by truncation
- atan2 .. arctangent
- hypot .. hypotenuse sqrt(a*a + b*b)
- ring1 .. a*b + a or equivalently: a*(b + 1)
- ring2 .. a*b + a + b
- ring3 .. a*a*b
- ring4 .. a*a*b - a*b*b
- sumsqr .. a*a + b*b
- difsqr .. a*a - b*b
- sqrsum .. (a + b)**2
- sqrdif .. (a - b)**2
- absdif .. fabs(a - 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 }
- excess .. residual of clipping a - clip2(a,b)
-
- Oscillators
-
- Osc .. wavetable oscillator
- Osc.ar(table, freq, phase, mul, add)
-
- OscN .. noninterpolating wavetable oscillator
- OscN.ar(table, freq, phase, mul, add)
-
- COsc .. chorusing oscillator
- COsc.ar(table, freq, beats, mul, add)
-
- COsc2 .. dual table chorusing oscillator
- COsc2.ar(table1, table2, freq, beats, mul, add)
-
- OscX4 .. 4 table crossfade oscillator
- OscX4.ar(table1, table2, table3, table4, freq, xpos, ypos, mul, add)
-
- SinOsc .. sine table lookup oscillator
- SinOsc.ar(freq, phase, mul, add)
-
- FSinOsc .. very fast sine oscillator
- FSinOsc.ar(freq, mul, add)
-
- Klang .. bank of fixed frequency sine oscillators
- Klang.ar(inSpecificationsArrayRef, iFreqScale, iFreqOffset, mul, add)
-
- PSinGrain .. sine grain with a parabolic envelope (very fast)
- PSinGrain.ar(freq, dur, amp)
-
- Blip .. band limited impulse oscillator
- Blip.ar(freq, numharm, mul, add)
-
- Saw .. band limited sawtooth oscillator
- Saw.ar(freq, mul, add)
-
- Pulse .. band limited pulse wave oscillator
- Pulse.ar(freq, duty, mul, add)
-
- PMOsc .. phase modulation oscillator pair
- PMOsc.ar(carfreq, modfreq, pmindex, modphase, mul, add)
-
- Formant .. formant oscillator
- Formant.ar(fundfreq, formfreq, bwfreq, mul, add)
-
- Phasor .. sawtooth for phase input
- Phasor.ar(freq, mul, add)
-
- LFSaw .. low freq (i.e. not band limited) sawtooth oscillator
- LFSaw.ar(freq, mul, add)
-
- LFPulse .. low freq (i.e. not band limited) pulse wave oscillator
- LFPulse.ar(freq, width, mul, add)
-
- Impulse .. non band limited impulse oscillator
- Impulse.ar(freq, mul, add)
-
- SyncSaw .. hard sync sawtooth wave oscillator
- SyncSaw.ar(syncFreq, sawFreq, mul, add)
-
- Noise
-
- WhiteNoise .. white noise
- WhiteNoise.ar(mul, add)
-
- PinkNoise .. pink noise
- PinkNoise.ar(mul, add)
-
- BrownNoise .. brown noise
- BrownNoise.ar(mul, add)
-
- ClipNoise .. clipped noise
- ClipNoise.ar(mul, add)
-
- LFNoise0 .. low frequency noise, no interpolation
- LFNoise0.ar(freq, mul, add)
-
- LFNoise1 .. low frequency noise, linear interpolation
- LFNoise1.ar(freq, mul, add)
-
- LFNoise2 .. low frequency noise, quadratic interpolation
- LFNoise2.ar(freq, mul, add)
-
- LFClipNoise .. low frequency clipped noise
- LFClipNoise.ar(freq, mul, add)
-
- Crackle .. chaotic noise function
- Crackle.ar(chaosParam, mul, add)
-
- Dust .. random positive impulses
- Dust.ar(density, mul, add)
-
- Dust2 .. random bipolar impulses
- Dust2.ar(density, mul, add)
-
- LinCong .. linear congruential generator
- LinCong.ar(iseed, imul, iadd, imod, mul, add)
-
- Rossler .. chaotic function
- Rossler.ar(chaosParam, dt, mul, add)
-
- Latoocarfian .. Clifford Pickover's chaotic function
- Latoocarfian.ar(a, b, c, d, mul, add)
-
- Filters
-
- FOS .. general first order section
- FOS.ar(in, a0, a1, b1, mul, add)
-
- SOS .. general second order section
- SOS.ar(in, a0, a1, a2, b1, b2, mul, add)
-
- Resonz .. general purpose resonator
- Resonz.ar(in, freq, bwr, mul, add)
-
- Klank .. bank of fixed frequency resonators
- Klank.ar(inSpecificationsArrayRef, iFreqScale, iFreqOffset, iDecayScale,
in, mul, add)
-
- OnePole .. one pole filter
- OnePole.ar(in, coef, mul, add)
-
- OneZero .. one zero filter
- OneZero.ar(in, coef, mul, add)
-
- TwoPole .. two pole filter
- TwoPole.ar(in, freq, radius, mul, add)
-
- TwoZero .. two zero filter
- TwoZero.ar(in, freq, radius, mul, add)
-
- RLPF .. resonant low pass filter
- RLPF.ar(in, freq, rq, mul, add)
-
- RHPF .. resonant high pass filter
- RHPF.ar(in, freq, rq, mul, add)
-
- LPF .. Butterworth low pass
- LPF.ar(in, freq, mul, add)
-
- HPF .. Butterworth high pass
- HPF.ar(in, freq, mul, add)
-
- BPF .. Butterworth band pass
- BPF.ar(in, freq, rq, mul, add)
-
- BRF .. Butterworth band reject
- BRF.ar(in, freq, rq, mul, add)
-
- RLPF4 .. fourth order resonant low pass filter
- RLPF4.ar(in, freq, res, mul, add)
-
- Integrator .. integrator
- Integrator.ar(in, coef, mul, add)
-
- Slope .. differentiator scaled by sampling rate
- Slope.ar(in, mul, add)
-
- LeakDC .. removes that ugly DC build up
- LeakDC.ar(in, coef, mul, add)
-
- Decay .. exponential decay
- Decay.ar(in, decayTime, mul, add)
-
- Decay2 .. exponential attack and decay
- Decay2.ar(in, attackTime, decayTime, mul, add)
-
- LPZ1 .. special case: two point sum (one zero low pass)
- LPZ1.ar(in, mul, add)
-
- HPZ1 .. special case: two point difference (one zero high pass)
- HPZ1.ar(in, mul, add)
-
- LPZ2 .. special case: two zero low pass
- LPZ2.ar(in, mul, add)
-
- HPZ2 .. special case: two zero high pass
- HPZ2.ar(in, mul, add)
-