Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... zoom * sign ); } } }; // joyhat L R switches prev/next preset on inphlux, both: rand /// FIXME: mark modalAction has happened, // dont do basic action on second release m.getHalo.hatWasUsed = false; m.elAt(\joy, \l, \hat).elemDesc.label = " ...

  2. TestRational Quark

    ... single + or - (exactly 2^26) // // maxAssocIntVal 144263 two adds over three operands, 3 * M^3 <= 2^53 // (the k * M^k of Note [Cross-reduction]; k // counts operands, not operations). Also used // for (a*b)*c, which needs only M^3 <= 2^53 ...

  3. ShannonMindReadingMachine-test Quark

    ... .class; a.inspect; a.value; a = Pseq([Pfuncn({ |event| event.copy.put(\val, 1.0.rand) }, 2), Pfuncn({ |event| event.copy.put(\val, event[\max].rand) }, 2)], inf); x = a.asStream; x.next((max: 100, zz: 8)); a = Pmindread(Pseq([1, 0, 1, 1, 0, ...

  4. 261-oscillators_clocks Quark

    ... (world, RedVector2D[x, y], nil, nil, 0, 1/n*width) .coupling_(0.1/n) .freq_(0.1.rand) .phase_(2pi.rand) }; //--loop w.draw{ world.objects.do{|o| world.objects.do{|p| if(p!=o, { o.couple(p); }); }; }; world.objects.do{|o| o.update}; //--rend ...

  5. NB_more_examples Quark

    ... ublishCode( "fontsize" .cmd(24), "text" .cmd(txt, 10, 25, n.width, 50), "stroke(random(), random(), random(), random())" , "strokewidth(1)" , "line(0, HEIGHT / 2, WIDTH, HEIGHT / 2)" ); routine = Routine ({ var freq, mul, dur, scaleOval; sc ...

  6. percOrc5 Quark

    ... droneLevel=0.0022,ffreq=8000,rq=0.2,decay = 0.3; RLPF.ar( Klank.ar( `[ Array.linrand(4, 50.0, 2000.0), nil, Array.rand(4, 0.2, 12.0) ], //drones PinkNoise.ar(LFNoise1.kr(3.0, 0.0008, droneLevel)) ).max(0) , Decay2.kr(trig, 0.004, decay, ffr ...

  7. Graph Quark

    ... i*20, 0, "test" ++i)}); g.plot ; g = Graph .new ; 500.do({ |i| g.addVertex(500.rand+300, 500.rand+150, 0, "test" ++i)}); g.plot ; ) changeVertexPosition (vID, x, y) Allow changing the position of a vertex by providing its viD and new coord ...

  8. KeyboardWindow Quark

    ... hannel ) press and unpress all notes from the lang 10.do({ k.pressNote( 36 + 36.rand, 64.rand + 1 ) }); // 10 random notes k.unPressAll; activeNotes array with currently active notes. Last item is always the last note press 10.do({ k.pressN ...

  9. NumberEditor Quark

    ... olar); if(change,{this.changed}); ^value } unmappedValue { ^spec.unmap(value) } rand { arg standardDeviation = 0.15,mean; // gaussian centered on the spec default var default,unmapped; mean = mean ?? {if(spec.default == spec.minval,{spec.ra ...

  10. NumberEditor Quark

    ... lar); if(change, {this.changed}); ^value } unmappedValue { ^spec.unmap(value) } rand { arg standardDeviation = 0.15, mean; // gaussian centered on the spec default var default, unmapped; mean = mean ?? {if(spec.default == spec.minval, {spec ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow