Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... nval ) . func . func = value Examples ( a = Plazy({ var x, y; x = Array.series(rrand(2, 4), [1, 100].choose, 1); Pshuf(x, 1); }); x = Pn(a, inf).asStream; 30.do({ x.next.postln }); ) // Plazy used to produce a sequence of pitches: ( SynthDe ...

  2. Internal-Snooping Doc

    ... do { | 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; // du ...

  3. LTI Doc

    ... ocated sizes ( a = Array.fill(100, { 0.0 }); // feedback coefficients b = Array.rand(100, -0.5, 0.5); // feedforward coefficients b[0] = 1; c = Buffer.sendCollection(s, a, 1); d = Buffer.sendCollection(s, b, 1); ) { LTI.ar(SoundIn.ar([0, 1] ...

  4. Fdef Doc

    ... 0| x }); Fdef(\x).value(8); Fdef(\y).value(8); z = Fdef(\x) * Fdef(\y) + { 1.0.rand }; z.value; z.value(400); ⧉ ✔ // sound example ( s.boot; SynthDef("gpdef", { |out = 0, freq = 440, sustain = 0.05, amp = 0.1| var env; env = EnvGen.kr(Env. ...

  5. DataRecord Doc

    ... .4, \data, 0.5]; ~rec= recorder.start; ~board= board; ) ~rec.extra= [\more, 1.0.rand, \data, 1.0.rand]; //evaluate this a few times ~rec.stop; ~board.stop; ~rec.path.openOS; //open file we just recorded in text editor //there should be more ...

  6. Pdfsm Doc

    ... tain, 0.2), doneAction: Done.freeSelf); 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 -> [0, ...

  7. Stream Doc

    ... tions of its nextFunction. // Example 1: a Function vs. a FuncStream ( f = { 33.rand }; x = FuncStream(f); 10.do({ [f.next, x.next].postln }); ) ⧉ ✔ // Example 2: the reset function ( f = { 33.rand }; x = FuncStream(f, { thisThread.randSeed ...

  8. Pproto Doc

    ... nd(*[ instrument: \osc, freq: Pwhite(1, 16) * 100, detune: Pfunc { Array.fill(3.rand + 1, { 3.0.rand }) }, dur: Prand([2, 2, 2.2, 1], 10), db: Pn(Pstep([-10, -20, -20, -15, -20, -20, -20], 0.5)), legato: Pwhite(0.0, 1).linexp(0, 0, 0.1, 3) ...

  9. 191-kmeans2 Doc

    //k-means clustering2 //points in space moving around at random - kmeans find central point and draw a blob ( var width= 640, height= 480, w, wgrav, world, n= 100, kmeans; //--world w= RedWindow("k-means2", Rect(128, 64, width, height)).fro ...

  10. Pbind Doc

    ... am ⧉ ✔ Inherited instance methods 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 example ...

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow