Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1643) Code (228) Doc (514) Help (194) Quark (697) Plugin (10) SCDoc ↗ Forum ↗ Google ↗
  1. Internal-Snooping Help

    ... arg i; var w, b; w = Window .new( "snoop " ++ i.asString, Rect .new( 200 + 400.rand, 69 + 300.rand, 172, 90 )); w.front; b = Button .new( w, Rect .new( 23, 28, 127, 25 )); b.states = [[ "BLAM-O" , Color .red]]; })) Window .allWindows.dump; ...

  2. Pdfsm Help

    ... c(0.01, sustain, 0.2), doneAction:2); Out .ar(out, SinOsc .ar([freq, freq + 0.1.rand2], 0, env)) }).add; ) ( var p; p = Pdfsm ( [ Prand ([0,1,2], inf ), // signalStream IdentityDictionary [ // state 0 0 -> [ 2, Pseq ([67,68,69], 2) ], 1 -> ...

  3. SynthDefs and Synths Help

    ... t less flexible. Compare these two examples: // first with a Function. Note the random frequency each time 'play' is called. f = { SinOsc .ar(440 + 200.rand, 0, 0.2) }; x = f.play; y = f.play; z = f.play; x.free; y.free; z.free; // Now with ...

  4. SCImage Help

    ... SCPen .translate(100, 100); 10.do{ // set the Color SCPen .color = Color .blue(rrand(0.0, 1), rrand(0.0, 0.5)); SCPen .addWedge((100.rand)@(100.rand), rrand(10, 100), 2pi.rand, 2pi.rand); SCPen .perform([ \stroke , \fill ].choose); } }; w.r ...

  5. Pbind Help

    ... elements as there are keys. Examples ( a = Pbind ( \x , Pseq ([1, 2, 3]), \y , Prand ([100, 300, 200], inf ), \zzz , 99); x = a.asStream; ) x.next(()); // pass in an event () x.next(()); x.next(()); x.next(()); // end: nil // sound examples ...

  6. Tracing Processes Help

    ... l only post part of the data, or a simplified // representation. // n times 200 random numbers // will just add ... etc ... after 123 ( var n = 3; (1..n).do { |num| { 1000.rand }.dup(200).postln }; ) // posts the compile string, i.e. the co ...

  7. Gradient Help

    ... w = Window .new.front; v = CompositeView (w, Rect (50,50,300,300)); c = Color .rand; d = c.vary(0.15); v.background = Gradient (c, d, \v ); [c, d].postln ) ( var w, k, c, d, e, c1, c2, f, g; w = Window .new.front; k = Slider2D (w, Rect (50 ...

  8. SCMultiSliderView Help

    ... //default thumbWidth is 13 m.elasticMode_(1); m.value= Array .fill(n, { |v| 1.0.rand}); m.reference= Array .fill(n, { |v| 0.5}); m.action = { arg q;q.value.postln; }; m.isFilled_ ( true ); m.drawLines_( true ); m.drawRects_( false ); w.fron ...

  9. Pitch Help

    ... LFNoise1 .kr(0.3,0.1,0.1), amp)); 6.do({ out = AllpassN .ar(out, 0.040, [0.040.rand,0.040.rand], 2) }); Out .ar(0,out) }).play(s); ) ( SynthDef ( "pitchFollow2" ,{ var in, amp, freq, hasFreq, out; in = Mix .new( SoundIn .ar([0,1])); amp = ...

  10. IRand Help

    IRand IRand(lo, hi) Generates a single random integer value in uniform distribution from lo to hi ( SynthDef ( "help-IRand" , { Out .ar( I Rand (0, 1), //play on random channel between 0 and 1 FSinOsc .ar(500, 0, Line .kr(0.2, 0, 0.1, doneA ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow