Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (563) Code (183) Doc (189) Help (65) Quark (121) Plugin (5) SCDoc ↗ Forum ↗ Google ↗
  1. LFSaw Help

    LFSaw sawtooth oscillator LFSaw.ar(freq, iphase, mul, add) A non-band-limited sawtooth oscillator. Output ranges from -1 to +1. freq - frequency in Hertz iphase - initial phase offset. For efficiency reasons this is a value ranging from 0 t ...

  2. Rotate2 Help

    ... pos * pi, so that -1 becomes -pi and +1 becomes +pi. This allows you to use an LFSaw to do continuous rotation around a circle. x, y - input signals pos - angle to rotate around the circle from -1 to +1. -1 is 180 degrees, -0.5 is left, 0 ...

  3. FOS Help

    ... ) Examples: ( // same as OnePole { var x; x = LFTri .ar(0.4, 0, 0.99); FOS .ar( LFSaw .ar(200, 0, 0.2), 1 - x.abs, 0.0, x) }.play; ) ( // same as OneZero { var x; x = LFTri .ar(0.4, 0, 0.99); FOS .ar( LFSaw .ar(200, 0, 0.2), 1 - x.abs, x, 0 ...

  4. Compander Help

    ... ( // example signal to process play({ var z; z = Decay2 .ar( Impulse .ar(8, 0, LFSaw .kr(0.3, 0, -0.3, 0.3)), 0.001, 0.3, Mix .ar( Pulse .ar([80,81], 0.3))) }) ) ( // noise gate play({ var z; z = Decay2 .ar( Impulse .ar(8, 0, LFSaw .kr(0.3 ...

  5. HPF Help

    ... .kr( XLine .kr(0.7, 300, 20), 0, 3600, 4000), 5) }.play; ( { var ctl = HPF .kr( LFSaw .kr(5), SinOsc .kr( XLine .kr(0.07,30,20), 0, 35, 40)) ; SinOsc .ar(ctl * 200 + 500) * 0.1; }.play; ) ( { var ctl = HPF .kr( LFSaw .kr(5,0.1), MouseX .kr( ...

  6. RunningSum Help

    ... .ar) }.play // Running Average over x samples ( { var x = 100; RunningSum .ar( LFSaw .ar, x) * (x.reciprocal) }.play ) // RMS Power ( { var input, numsamp; input = LFSaw .ar; numsamp = 30; ( RunningSum .ar(input.squared, numsamp) / numsamp ...

  7. UnaryOpUGen Help

    ... e result of a unary operator applied to a UGen . ( SinOsc .ar(200).abs).dump; ( LFSaw .ar(200).sin).dump; As in the examples given here, you don't usually need to instantiate UnaryOpUGen youself. Examples for unary operations on UGens are t ...

  8. Normalizer Help

    ... / example signal to process Synth .play({ var z; z = Decay2 .ar( Impulse .ar(8, LFSaw .kr(0.25, -0.6, 0.7)), 0.001, 0.3, FSinOsc .ar(500)); }, 0.8) ) ( Synth .play({ var z; z = Decay2 .ar( Impulse .ar(8, LFSaw .kr(0.25, -0.6, 0.7)), 0.001, ...

  9. Select Help

    ... ycle; a = [ SinOsc .ar, Saw .ar, Pulse .ar ]; cycle = a.size * 0.5; Select .ar( LFSaw .kr(1.0,0.0,cycle,cycle),a) * 0.2 }.play; ) Note: all the ugens are continously running. This may not be the most efficient way if each input is cpu-expen ...

  10. BiPanB2 Help

    ... , +1 is behind. gain - amplitude control ( { var w, x, y, p, q, a, b, c, d; p = LFSaw .ar(200); q = LFSaw .ar(301); // B-format encode #w, x, y = BiPanB2 .ar(p, q, MouseX .kr(-1,1), 0.1); // B-format decode to quad #a, b, c, d = DecodeB2 .a ...

1 2 3 4 5 6 7 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow