Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (807) Code (67) Doc (450) Help (188) Quark (73) Plugin (29) SCDoc ↗ Forum ↗ Google ↗
  1. TChoose Help

    ... rray) ( { var a; a = [ SinOsc .ar, Saw .ar, Pulse .ar ]; TChoose .ar( Dust .ar( MouseX .kr(1, 1000, 1)), a) * 0.2 }.play; ) Note: all the ugens are continously running. This may not be the most efficient way if each input is cpu-expensive.

  2. Dwrand Help

    ... = Dwrand ([0, 1, 2, 7], [0.4, 0.4, 0.1, 0.1], inf ).dpoll; trig = Impulse .kr( MouseX .kr(1, 400, 1)); freq = Demand .kr(trig, 0, a) * 30 + 340; SinOsc .ar(freq) * 0.1 }.play; )

  3. TExpRand Help

    ... ar( TExpRand .kr(300.0, 3000.0, trig) ) * 0.1 }.play; ) ( { var trig = Dust .ar(MouseX.kr(1, 8000, 1)); SinOsc .ar( TExpRand .ar(300.0, 3000.0, trig) ) * 0.1 }.play; )

  4. BufFrames Help

    ... ), 0, BufFrames .kr(0))) }.play; // indexing by hand { BufRd .ar(1, 0, K2A .ar( MouseX .kr(0, BufFrames .kr(0)))) }.play;

  5. K2A Help

    ... tions.blockSize; // usually 64 sampleRate = Server .internal.sampleRate; freq = MouseX .kr(0.1, 40, 1) / blockSize * sampleRate; [ K2A .ar( LFNoise0 .kr(freq)), LFNoise0 .ar(freq) ] * 0.3 }.scope; )

  6. PinkNoise Help

    ... , 200)) * 0.1 }.play; // filtered pink noise { BPF .ar( PinkNoise .ar(0.1.dup), MouseX.kr(40, 17000, 1), 0.2) }.play;

  7. Rotate2 Help

    ... le #w, x, y = PanB2 .ar(p, -0.5) + PanB2 .ar(q, 0.5); #x, y = Rotate2 .ar(x, y, MouseX .kr(-1,1)); // B-format decode to quad #a, b, c, d = DecodeB2 .ar(4, w, x, y); [a, b, d, c] // reorder to my speaker arrangement: Lf Rf Lr Rr }.play; ) / ...

  8. TwoPole Help

    ... 005), XLine .kr(800,8000,8), 0.95) }.play { TwoPole .ar( WhiteNoise .ar(0.005), MouseX .kr(800,8000,1), 0.95) }.play

  9. Impulse Help

    ... XLine .kr(800,100,5), 0.0, 0.5, 0) }.play modulate phase: { Impulse .ar(4, [0, MouseX .kr(0, 1)], 0.2) }.play; an Impulse with frequency 0 returns a single impulse: SynthDef ( \imp , { OffsetOut .ar(0, Impulse .ar(0)); FreeSelf .kr( Impuls ...

  10. DetectIndex Help

    ... (0, t) ) ); { var index, in, out, f0, fdiff; var bufnum = b; var input; input = MouseX .kr(0, max).round(1); // round to precision index = DetectIndex .kr(bufnum, input); index.poll; SinOsc .ar(index.linexp(0, max, 200, 700)) * 0.1 }.play; ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow